Package class

Available extensions

Constructors

Package.new(String identifier, PackageType packageType, StoreProduct storeProduct, PresentedOfferingContext presentedOfferingContext)
const
Package.fromJson(Map<String, dynamic> json)
factory

Properties

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.
final
offeringIdentifier String

Available on Package, provided by the ExtendedPackage extension

Offering this package belongs to.
no setter
packageType PackageType
Package type for the product. Will be one of PackageType.
final
presentedOfferingContext PresentedOfferingContext
Offering context this package belongs to.
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
storeProduct StoreProduct
StoreProduct assigned to this package.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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