Type class - dart:core library (original) (raw)

Runtime representation of a type.

Type objects represent types. A type object can be created in several ways:

A type object is intended as an entry point for using dart:mirrors. The only operations supported are comparing to other type objects for equality, and converting it to a string for debugging.

Properties

hashCodeint

A hash code for the type which is compatible with operator==.

no setteroverride

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

Methods

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

Returns a string which represents the underlying type.

override

Operators

operator ==(Object other)→ bool

Whether other is a Type instance representing an equivalent type.

override