create<T extends DatumEntityInterface> method
Creates a new entity and pushes it to the appropriate manager.
This is a convenience method that is equivalent to calling Datum.manager<T>().push(item: entity, userId: entity.userId).
Implementation
Future<T> create<T extends DatumEntityInterface>(T entity) {
return Datum.manager<T>().push(item: entity, userId: entity.userId);
}