updateEntity method

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

Implementation

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