addEntity method

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

Implementation

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