isPotentiallyNullable abstract method
Return true
if the type
is a potentially nullable type.
We say that a type T
is potentially nullable if T
is not non-nullable.
Note that this is different from saying that T
is nullable. For example,
a type variable X extends Object?
is a type which is potentially
nullable but not nullable.
The result of this method is undefined when the experiment 'non-nullable' is not enabled.
Implementation
bool isPotentiallyNullable(DartType type);