Offerings class

This class contains all the offerings configured in RevenueCat dashboard. For more info see https://docs.revenuecat.com/docs/entitlements

Annotations
  • @freezed

Constructors

Offerings(Map<String, Offering> all, {Offering? current})
const
factory
Offerings.fromJson(Map<String, dynamic> json)
factory

Properties

all Map<String, Offering>
Map of all Offerings Offering objects keyed by their identifier.
no setterinherited
copyWith → $OfferingsCopyWith<Offerings>
Create a copy of Offerings with the given fields replaced by the non-null parameter values.
no setterinherited
current Offering?
Current offering configured in the RevenueCat dashboard.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getOffering(String identifier) Offering?
Retrieves an specific offering by its identifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Offerings to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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