ProductSlot class final
A product slot: a stable id (monthly, annual) bindings use, mapped to
each store's product id.
- Annotations
Constructors
- ProductSlot(String id, {String iosProductId = '', String androidProductId = '', ProductTestData? test})
-
const
Properties
- androidProductId → String
-
The Google Play product id.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- iosProductId → String
-
The App Store product id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- test → ProductTestData?
-
What the SDK's test store shows and does for this slot on preview and
demo sites (no store, no payment); null when it has none. Real stores
ignore it.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
productIdFor(
String platform) → String -
The product id for
platform(ios,macos,android). -
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → ProductSlot?