SubscriptionState constructor

SubscriptionState({
  1. BuildContext? context,
  2. bool? loader,
  3. bool? isSubscribed,
  4. bool? purchasePending,
  5. bool? isTrial,
  6. String? title,
  7. bool? isClicked,
  8. int? selectedItem,
  9. int? subscriptionType,
  10. ProductDetailsResponse? productResponse,
  11. String? subsExpiryDate,
  12. List<ProductDetails>? products,
  13. List<SubscriptionProducts>? subscriptionProducts,
  14. List<PurchaseDetails>? purchases,
  15. String? pastSubscriptionId,
  16. String? currentSubscriptionId,
  17. String? selectedProductId,
})

Implementation

SubscriptionState({
  this.context,
  this.loader,
  this.isSubscribed,
  this.purchasePending,
  this.isTrial,
  this.title,
  this.isClicked,
  int? selectedItem,
  this.subscriptionType,
  this.productResponse,
  String? subsExpiryDate,
  List<ProductDetails>? products,
  List<SubscriptionProducts>? subscriptionProducts,
  List<PurchaseDetails>? purchases,
  String? pastSubscriptionId,
  String? currentSubscriptionId,
  this.selectedProductId,
}):   selectedItem = selectedItem ?? 0,
      subsExpiryDate = subsExpiryDate ?? "",
      products = products ?? [],
      subscriptionProducts = subscriptionProducts ?? [],
      purchases = purchases ?? [],
      pastSubscriptionId = pastSubscriptionId??"",
      currentSubscriptionId = currentSubscriptionId??"";