isExplicitlyNonNullable property
bool
get
isExplicitlyNonNullable
Implementation
bool get isExplicitlyNonNullable {
var type = this;
if (type == null || type is DynamicType) {
return false;
}
if (_isFutureOrWithExplicitlyNullableValue) {
return false;
}
if (type.nullabilitySuffix == NullabilitySuffix.star) {
return true;
}
return type.nullabilitySuffix == NullabilitySuffix.none;
}