addEntity method

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

Implementation

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