addEntity method

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

Implementation

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