isNullable function

bool isNullable(
  1. DartType type
)

True iff type is T? (or Null).

Implementation

bool isNullable(DartType type) =>
    type.nullabilitySuffix == NullabilitySuffix.question || type.isDartCoreNull;