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
-
- Object
- DomainObject
- BasicDomainObject
- Mixed in types
-
- IntIdentifier
- Comparable<
T> - Cloneable<
T>
Constructors
Properties
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