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