addEntity method

  1. @override
Future<AlbumEntity> addEntity(
  1. String documentID,
  2. AlbumEntity value
)
override

Implementation

@override
Future<AlbumEntity> addEntity(String documentID, AlbumEntity value) {
  return albumCollection
      .doc(documentID)
      .set(value.toDocument())
      .then((_) => value);
}