nonNull top-level constant

  1. @Deprecated("Dart not support non-nullable types")
Object const nonNull

An element annotated with @notNull claims null value is forbidden to return (for methods), pass to (parameters) and hold (local variables and fields).

Apart from documentation purposes this annotation is intended to be used by static analysis tools to validate against probable runtime errors and element contract violations.

Implementation

@Deprecated("Dart not support non-nullable types")
const Object nonNull = _NonNull();