insertObject<T extends ManagedObject> method
Null safety
- 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();
}