updateEntity method

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

Implementation

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