isExplicitlyNonNullable property

bool get isExplicitlyNonNullable

Whether the type is an opted-in library where it is explicitly non-null.

Implementation

bool get isExplicitlyNonNullable {
  var type = this;
  if (type == null || type.isDynamic) {
    return false;
  }
  if (_isFutureOrWithExplicitlyNullableValue) {
    return false;
  }
  return type.nullabilitySuffix == NullabilitySuffix.none;
}