DatumCoreFields<E extends DatumEntityInterface> class final

The six standard sync fields every DatumEntityInterface carries, as individually-typed specs plus an all list to spread into a schema:

static final core = datumCoreFieldSpecs<Task>();
static final schema = DatumSchema<Task>(
  name: 'tasks',
  fields: [...core.all, TaskFields.title],
  construct: (r) => Task(id: r(core.id), version: r(core.version), ...),
);

Properties

all List<DatumFieldSpec<E, dynamic>>
All six specs, for spreading into DatumSchema.fields.
no setter
createdAt DatumFieldSpec<E, DateTime>
final
hashCode int
The hash code for this object.
no setterinherited
id DatumFieldSpec<E, String>
final
isDeleted DatumFieldSpec<E, bool>
final
modifiedAt DatumFieldSpec<E, DateTime>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId DatumFieldSpec<E, String>
final
version DatumFieldSpec<E, int>
final

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