Package class
Contains information about the product available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
- Available extensions
- Annotations
-
- @freezed
Constructors
- Package(String identifier, @JsonKey(name: 'packageType', unknownEnumValue: PackageType.unknown) PackageType packageType, @JsonKey(name: 'product') StoreProduct storeProduct, PresentedOfferingContext presentedOfferingContext)
-
constfactory
-
Package.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $PackageCopyWith<
Package> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
Unique identifier for this package. Can be one a predefined package type
or a custom one.
no setterinherited
- packageType → PackageType
-
Package type for the product. Will be one of PackageType.
no setterinherited
- presentedOfferingContext → PresentedOfferingContext
-
Offering context this package belongs to.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storeProduct → StoreProduct
-
StoreProduct assigned to this package.
no setterinherited
Methods
-
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