updateEntity method

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

Implementation

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