FirestoreIdentifiedObject<T>.create constructor

FirestoreIdentifiedObject<T>.create(
  1. T object,
  2. T updateObjectWithId(
    1. T object,
    2. String id
    ),
  3. RepositoryFirestore<T> repository
)

Convenience factory method for creating objects with auto-generated IDs

Implementation

factory FirestoreIdentifiedObject.create(
        T object, T Function(T object, String id) updateObjectWithId, RepositoryFirestore<T> repository,) =>
    FirestoreIdentifiedObject(object, updateObjectWithId, repository);