Offering class

An offering is a collection of Package available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements

Annotations
  • @freezed

Constructors

Offering(@JsonKey(name: 'identifier') String identifier, @JsonKey(name: 'serverDescription') String serverDescription, @JsonKey(name: 'availablePackages') List<Package> availablePackages, {@JsonKey(name: 'lifetime') Package? lifetime, @JsonKey(name: 'annual') Package? annual, @JsonKey(name: 'sixMonth') Package? sixMonth, @JsonKey(name: 'threeMonth') Package? threeMonth, @JsonKey(name: 'twoMonth') Package? twoMonth, @JsonKey(name: 'monthly') Package? monthly, @JsonKey(name: 'weekly') Package? weekly})
const
factory
Offering.fromJson(Map<String, dynamic> json)
factory

Properties

annual Package?
Annual package type configured in the RevenueCat dashboard, if available.
no setterinherited
availablePackages List<Package>
Array of Package objects available for purchase.
no setterinherited
copyWith → $OfferingCopyWith<Offering>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifier String
Unique identifier defined in RevenueCat dashboard.
no setterinherited
lifetime Package?
Lifetime package type configured in the RevenueCat dashboard, if available.
no setterinherited
monthly Package?
Monthly package type configured in the RevenueCat dashboard, if available.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverDescription String
Offering description defined in RevenueCat dashboard.
no setterinherited
sixMonth Package?
Six month package type configured in the RevenueCat dashboard, if available.
no setterinherited
threeMonth Package?
Three month package type configured in the RevenueCat dashboard, if available.
no setterinherited
twoMonth Package?
Two month package type configured in the RevenueCat dashboard, if available.
no setterinherited
weekly Package?
Weekly package type configured in the RevenueCat dashboard, if available.
no setterinherited

Methods

getPackage(String identifier) Package?
Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited