WrittenCollectionType class
The runtimeType of a collection a script wrote type arguments for:
the native class (List, _Map, _Set, ...) with the written
arguments, List<String> / _Map<String, int> as Dart prints them. A
script class can be an argument (List<Point>), which no native Type
the interpreter could construct can hold, so this is a Type of its own,
equal to another of the same spelling.
- Implemented types
Constructors
-
WrittenCollectionType(String className, List<
RuntimeType> typeArguments)
Properties
- className → String
-
The native class name,
List,_Map,_Set, ...final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typeArguments
→ List<
RuntimeType> -
The written type arguments.
final
Methods
-
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 -
Equal to another of the same spelling, and (ghissues80) to the
AppliedRuntimeType a type literal or a type parameter holds -
<String>[].runtimeType == List<String>, as in Dart.override
Static Methods
-
of(
Object? collection) → WrittenCollectionType? -
collection's written type, or null when it has none recorded.