addEntity method

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

Implementation

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