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(@JsonKey(name: 'all') Map<String, Offering> all, {@JsonKey(name: 'current') 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>
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

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