updateEntity method

  1. @override
Future<NotificationDashboardEntity> updateEntity(
  1. String documentID,
  2. NotificationDashboardEntity value
)
override

Implementation

@override
Future<NotificationDashboardEntity> updateEntity(
    String documentID, NotificationDashboardEntity value) {
  return notificationDashboardCollection
      .doc(documentID)
      .update(value.toDocument())
      .then((_) => value);
}