IIdentifiable<K> class abstract

Generic interface for data objects that can be uniquely identified by an id.

The type specified in the interface defines the type of id field.

Example

class MyData implements IIdentifiable<string> {
     String id;
     String field1;
     int field2;
    ...
}
Implementers

Constructors

IIdentifiable()

Properties

hashCode int
The hash code for this object.
no setterinherited
id ↔ K?
The unique object identifier of type K.
getter/setter pair
runtimeType Type
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
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited