NullableRuntimeType class

A type written with ? where the type is part of a structural type — a record field such as the int? of (String, int?).

ghissues23: the resolvers return the class a name stands for, without the annotation's ? (callers that check a binding read question themselves), so a record's nullable field became non-nullable and refused null. A record field has no caller of its own to read it, so the record type carries it.

Implemented types

Constructors

NullableRuntimeType(RuntimeType inner)
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
inner → RuntimeType
The type without the ?.
final
name → String
The name of the type.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isSubtypeOf(RuntimeType other, {Object? value}) → bool
Checks if this type is a subtype of other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
ghissues80: structural, as Dart's Type == - List<String?> built in two places is one type.
override