BasicEntityObject class abstract

Simplest of all entity's objects Entity that extends EntityObject with IntIdentifier and Converter

EXAMPLE: See BasicDomainObject for ParentDomain's example code.

  class ParentEntity extends BasicEntityObject {

      int id;
      String name;
      DateTime bornDay;

      ParentEntity({required this.name, this.id = 0, DateTime? date})
          : bornDay = date ?? DateTime.now();
  }
Inheritance
Mixed in types

Constructors

BasicEntityObject()

Properties

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

Methods

compareTo(BasicEntityObject other) int
By default compare the two entities 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
The equality operator.
inherited