updateEntity method

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

Implementation

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