TypeValue<E> class

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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
no setter

Methods

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

Operators

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