MembershipCard constructor

const MembershipCard({
  1. Key? key,
  2. required bool hasSubscription,
  3. required bool hasActiveSubscription,
  4. required bool shouldShowRenew,
  5. required Datum subscriptionPackage,
  6. required String subscriptionExpiryDate,
  7. required List<Subscriptions> addons,
  8. required void onRenew(),
  9. required void onUpgrade(),
  10. required int totalUnusedAdultPassengerLimit,
  11. required int totalNeoOneMonthlySubscription,
  12. required int totalAdultPassengerLimit,
  13. required int totalBookings,
  14. required int totalUnusedBookings,
  15. required int neoOneMonthlySubscription,
  16. required bool hasExpiredSubscription,
})

Implementation

const MembershipCard({
  super.key,
  required this.hasSubscription,
  required this.hasActiveSubscription,
  required this.shouldShowRenew,
  required this.subscriptionPackage,
  required this.subscriptionExpiryDate,
  required this.addons,
  required this.onRenew,
  required this.onUpgrade,
  required this.totalUnusedAdultPassengerLimit,
  required this.totalNeoOneMonthlySubscription,
  required this.totalAdultPassengerLimit,
  required this.totalBookings,
  required this.totalUnusedBookings,
  required this.neoOneMonthlySubscription,
  required this.hasExpiredSubscription,
});