EntityDefinition<T> constructor

const EntityDefinition<T>({
  1. required ModelEntity model,
  2. required int objectToFB(
    1. T,
    2. Builder
    ),
  3. required T objectFromFB(
    1. Store,
    2. Uint8List
    ),
  4. required int? getId(
    1. T
    ),
  5. required void setId(
    1. T,
    2. int
    ),
  6. required List<ToOne> toOneRelations(
    1. T
    ),
  7. required Map<RelInfo, ToMany> toManyRelations(
    1. T
    ),
})

Implementation

const EntityDefinition(
    {required this.model,
    required this.objectToFB,
    required this.objectFromFB,
    required this.getId,
    required this.setId,
    required this.toOneRelations,
    required this.toManyRelations});