BasicDomainObject<T extends IntIdentifier> class abstract

Simplest of all entity's objects Entity that extends DomainObject with IntIdentifier

See BasicEntityObject for ParentEntity's example code. EXAMPLE: class ParentDomain extends BasicDomainObject { int id; String name; DateTime bornDay;

ParentDomain({required this.name, required this.bornDay, this.id = 0});

String get bornDayFormat => DateFormat.yMMMd().format(bornDay);

@override
String toString() {
  return 'ParentDomain{name: $name}';
}

}

Inheritance
Mixed in types

Constructors

BasicDomainObject()

Properties

hashCode int
The hash code for this object.
no setteroverride
id int
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() → T
override
compareTo(T other) int
By default compare the two domain by it's id
override
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
Default implementation of == operator Compare the two object by it's type and id's
override