Offering constructor

const Offering(
  1. String identifier,
  2. String serverDescription,
  3. Map<String, Object> metadata,
  4. List<Package> availablePackages, {
  5. Package? lifetime,
  6. Package? annual,
  7. Package? sixMonth,
  8. Package? threeMonth,
  9. Package? twoMonth,
  10. Package? monthly,
  11. Package? weekly,
})

Implementation

const factory Offering(
  /// Unique identifier defined in RevenueCat dashboard.
  String identifier,

  /// Offering description defined in RevenueCat dashboard.
  String serverDescription,

  /// Offering metadata defined in RevenueCat dashboard.
  Map<String, Object> metadata,

  /// Array of [Package] objects available for purchase.
  List<Package> availablePackages, {
  /// Lifetime package type configured in the RevenueCat dashboard, if available.
  Package? lifetime,

  /// Annual package type configured in the RevenueCat dashboard, if available.
  Package? annual,

  /// Six month package type configured in the RevenueCat dashboard, if available.
  Package? sixMonth,

  /// Three month package type configured in the RevenueCat dashboard, if available.
  Package? threeMonth,

  /// Two month package type configured in the RevenueCat dashboard, if available.
  Package? twoMonth,

  /// Monthly package type configured in the RevenueCat dashboard, if available.
  Package? monthly,

  /// Weekly package type configured in the RevenueCat dashboard, if available.
  Package? weekly,
}) = _Offering;