The base class for all Dart objects.

Because Object is the root of the Dart class hierarchy, every other Dart class is a subclass of Object.

When you define a class, you should override toString to return a string describing an instance of that class. You might also need to define hashCode and ==, as described in the Implementing map keys section of the library tour.

Properties

hashCode int
read-only

Get a hash code for this object.

runtimeType Type
read-only

A representation of the runtime type of the object.

Constructors

Object()
const

Creates a new Object instance.

Operators

operator ==(other) → bool

The equality operator.

Methods

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

toString() → String

Returns a string representation of this object.