PurchasePlanModel constructor

const PurchasePlanModel({
  1. required String id,
  2. String? offerId,
  3. required String title,
  4. required String description,
  5. required String price,
  6. double? rawPrice,
  7. required String currencyCode,
  8. @Default('') String currencySymbol,
  9. @Default([]) List<String> offerTags,
  10. String? offerIdToken,
  11. @Default([]) List<PricingPhaseWrapper> pricingPhases,
})

Creates a new product details object with the provided details.

Implementation

const factory PurchasePlanModel({
  required String id,
  String? offerId,
  required String title,
  required String description,
  required String price,
  double? rawPrice,
  required String currencyCode,
  @Default('') String currencySymbol,
  @Default([]) List<String> offerTags,
  String? offerIdToken,
  @Default([]) List<PricingPhaseWrapper> pricingPhases,
}) = _PurchasePlanModel;