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