insertObjects<T extends ManagedObject> static method Null safety

Future<List<T>> insertObjects<T extends ManagedObject>(
  1. ManagedContext context,
  2. List<T> objects
)

Inserts each object in objects into the database managed by context in a single transaction.

This currently has no Query instance equivalent

Implementation

static Future<List<T>> insertObjects<T extends ManagedObject>(
  ManagedContext context,
  List<T> objects,
) async {
  return context.insertObjects(objects);
}