addEntity method

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

Implementation

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