ProductVariant class

Annotations
  • @freezed

Constructors

ProductVariant({required PriceV2 price, required String title, required double weight, required String weightUnit, required bool availableForSale, required bool requiresShipping, required String id, required int quantityAvailable, String? sku, PriceV2? unitPrice, UnitPriceMeasurement? unitPriceMeasurement, List<SelectedOption>? selectedOptions, PriceV2? compareAtPrice, ShopifyImage? image})
factory
ProductVariant.fromGraphJson(Map<String, dynamic> json)
factory
ProductVariant.fromJson(Map<String, dynamic> json)
factory

Properties

availableForSale bool
no setterinherited
compareAtPrice PriceV2?
no setterinherited
copyWith → $ProductVariantCopyWith<ProductVariant>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
image ShopifyImage?
no setterinherited
price PriceV2
no setterinherited
quantityAvailable int
no setterinherited
requiresShipping bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedOptions List<SelectedOption>?
no setterinherited
sku String?
no setterinherited
title String
no setterinherited
unitPrice PriceV2?
no setterinherited
unitPriceMeasurement UnitPriceMeasurement?
no setterinherited
weight double
no setterinherited
weightUnit String
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