insertObject<T extends ManagedObject> method Null safety

Future<T> insertObject<T extends ManagedObject>(
  1. T object
)

Inserts a single object into this context.

This method is equivalent shorthand for Query.insert.

Implementation

Future<T> insertObject<T extends ManagedObject>(T object) {
  final query = Query<T>(this)..values = object;
  return query.insert();
}