Object class

The base class for all Dart objects.

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.

Constructors

Object()
const
Creates a new Object instance.

Instance Properties

hashCode int
read-only
runtimeType Type
read-only

Instance Methods

toString() → String
Returns a string representation of this object.
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.

Operators

operator ==(other) → bool
The equality operator.