isNullable abstract method
Return true
if the type
is a nullable type.
We say that a type T
is nullable if Null <: T
. This is equivalent to
the syntactic criterion that T
is any of:
Null
S?
for someS
FutureOr<S>
for someS
whereS
is nullabledynamic
void
The result of this method is undefined when the experiment 'non-nullable' is not enabled.
Implementation
bool isNullable(DartType type);