isStrictlyNonNullable abstract method
Return true
if the type
is a strictly non-nullable type.
We say that a type T
is strictly non-nullable if T <: Object
and not
Null <: T
. This is equivalent to the syntactic criterion that T
is
any of:
Never
- Any function type (including
Function
) - Any interface type except
Null
FutureOr<S>
whereS
is strictly non-nullableX extends S
whereS
is strictly non-nullableX & S
whereS
is strictly non-nullable
The result of this method is undefined when the experiment 'non-nullable' is not enabled.
Implementation
bool isStrictlyNonNullable(DartType type);