ManagedObjectController<InstanceType extends ManagedObject>.forEntity constructor Null safety

ManagedObjectController<InstanceType extends ManagedObject>.forEntity(
  1. ManagedEntity entity,
  2. ManagedContext context
)

Creates a new ManagedObjectController without a static type.

This method is used when generating instances of this type dynamically from runtime values, where the static type argument cannot be defined. Behaves just like the unnamed constructor.

Implementation

ManagedObjectController.forEntity(
  ManagedEntity entity,
  ManagedContext context,
) : super() {
  _query = Query.forEntity(entity, context);
}