TypeValue<E> class Null safety

Used to obtain values of type Type.

It is sometimes inconvenient to create an expression whose value is an instance of type Type representing an instantiated generic type (e.g., List<int> is not an expression f(List<int>) is not a method call). This class provides a way to express such values (the example invocation can be written as f(const TypeValue<List<int>>().type)).

Constructors

TypeValue()
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type Type
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited