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
- int hashCode
-
read-onlyGet a hash code for this object.
- Type runtimeType
-
read-onlyA representation of the runtime type of the object.
Constructors
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.