addEntity method

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

Implementation

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