manager<T extends DatumEntityInterface> static method

DatumManager<T> manager<T extends DatumEntityInterface>()

Provides access to the specific manager for an entity type.

Implementation

static DatumManager<T> manager<T extends DatumEntityInterface>() {
  final manager = instance._managers[T];
  if (manager == null) {
    throw StateError('Entity type $T is not registered.');
  }
  return manager as DatumManager<T>;
}