insertObject<T extends ManagedObject> static method

Future<T> insertObject<T extends ManagedObject>(
  1. ManagedContext context,
  2. T object
)

Inserts a single object into the database managed by context.

This is equivalent to creating a Query, assigning object to values, and invoking insert.

Implementation

static Future<T> insertObject<T extends ManagedObject>(
  ManagedContext context,
  T object,
) {
  return context.insertObject(object);
}