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