Variant class final

A purchasable variant within a purchase-intent variant set.

Exposes active, position, price, and product, among other contract fields.

Constructors

Variant({required bool active, int? position, Price? price, Product? product, required String productId, required VariantValues variantValues})
const
Variant.fromJson(Map<String, Object?> json)
factory

Properties

active → bool
final
hashCode → int
The hash code for this object.
no setterinherited
position → int?
final
price → Price?
final
product → Product?
final
productId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variantValues → VariantValues
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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