isExplicitlyNullable property

bool get isExplicitlyNullable

Implementation

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