IStringIdentifiable class abstract

Interface for data objects that can be uniquely identifed by a string id.

The interface extends IIdentifiable to hardcode id type to string.

It is a common pattern to use a string GUID as the id, generated by IdGenerator.

See IIdentifiable See IdGenerator

Example

class MyData implements IStringIdentifiable {
    String id;
    String field1;
    String field2;
    ...
}
Implemented types

Constructors

IStringIdentifiable()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
The unique object identifier of type K.
getter/setter pairinherited
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