Object class

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.

Implemented by

Constructors

Object()
const

Creates a new Object instance.

Properties

hashCodeint
read-only

The hash code for this object.

runtimeTypeType
read-only

A representation of the runtime type of the object.

Operators

operator ==(other) → bool

The equality operator.

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

toString() → String

Returns a string representation of this object.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/Object-class.html