Offering class

Available extensions

Constructors

Offering.new(String identifier, String serverDescription, Map<String, Object> metadata, List<Package> availablePackages, {Package? lifetime, Package? annual, Package? sixMonth, Package? threeMonth, Package? twoMonth, Package? monthly, Package? weekly})
const
Offering.fromJson(Map<String, dynamic> json)
factory

Properties

annual Package?
Annual package type configured in the RevenueCat dashboard, if available.
final
availablePackages List<Package>
Array of Package objects available for purchase.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
Unique identifier defined in RevenueCat dashboard.
final
lifetime Package?
Lifetime package type configured in the RevenueCat dashboard, if available.
final
metadata Map<String, Object>
Offering metadata defined in RevenueCat dashboard.
final
monthly Package?
Monthly package type configured in the RevenueCat dashboard, if available.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverDescription String
Offering description defined in RevenueCat dashboard.
final
sixMonth Package?
Six month package type configured in the RevenueCat dashboard, if available.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
threeMonth Package?
Three month package type configured in the RevenueCat dashboard, if available.
final
twoMonth Package?
Two month package type configured in the RevenueCat dashboard, if available.
final
weekly Package?
Weekly package type configured in the RevenueCat dashboard, if available.
final

Methods

getMetadataString(String key, String defaultValue) String

Available on Offering, provided by the OfferingX extension

Returns the metadata value associated to key for the expected String type or defaultValue if not found, or it's not the expected String type.
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
toString() String
A string representation of this object.
inherited

Operators

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