Product class
Constructors
-
Product({int? id, String? name, String? slug, String? permalink, String? dateCreated, String? dateCreatedGmt, String? dateModified, String? dateModifiedGmt, String? type, String? status, bool? featured, String? catalogVisibility, String? description, String? shortDescription, String? sku, String? price, String? regularPrice, String? salePrice, String? dateOnSaleFrom, String? dateOnSaleFromGmt, String? dateOnSaleTo, String? dateOnSaleToGmt, String? priceHtml, bool? onSale, bool? purchasable, int? totalSales, bool? virtual, bool? downloadable, List<ProductDownloads>? downloads, int? downloadLimit, int? downloadExpiry, String? externalUrl, String? buttondText, String? taxStatus, String? taxClass, bool? manageStock, int? stockQuantity, String? stockStatus, String? backorders, bool? backordersAllowed, bool? backordered, bool? soldIndividually, String? weight, ProductDimensions? dimensions, bool? shippingdRequired, bool? shippingdTaxable, String? shippingClass, int? shippingClassId, bool? reviewsAllowed, String? averagedRating, int? ratingCount, List<int>? relatedIds, List<int>? upsellIds, List<int>? crossSellIds, int? parentId, String? purchaseNote, List<ProductCategory>? categories, List<ProductTag>? tags, List<ProductImage>? images, List<ProductAttributes>? attributes, List<ProductDefaultAttributes>? defaultAttributes, List<int>? variations, List<Product>? groupedProducts, List<ProductMeta>? metaData})
-
-
Product.fromJson(String source)
-
factory
-
Product.fromMap(Map<String, dynamic> map)
-
factory
Methods
-
copyWith({int? id, String? name, String? slug, String? permalink, String? dateCreated, String? dateCreatedGmt, String? dateModified, String? dateModifiedGmt, String? type, String? status, bool? featured, String? catalogVisibility, String? description, String? shortDescription, String? sku, String? price, String? regularPrice, String? salePrice, String? dateOnSaleFrom, String? dateOnSaleFromGmt, String? dateOnSaleTo, String? dateOnSaleToGmt, String? priceHtml, bool? onSale, bool? purchasable, int? totalSales, bool? virtual, bool? downloadable, List<ProductDownloads>? downloads, int? downloadLimit, int? downloadExpiry, String? externalUrl, String? buttondText, String? taxStatus, String? taxClass, bool? manageStock, int? stockQuantity, String? stockStatus, String? backorders, bool? backordersAllowed, bool? backordered, bool? soldIndividually, String? weight, ProductDimensions? dimensions, bool? shippingdRequired, bool? shippingdTaxable, String? shippingClass, int? shippingClassId, bool? reviewsAllowed, String? averagedRating, int? ratingCount, List<int>? relatedIds, List<int>? upsellIds, List<int>? crossSellIds, int? parentId, String? purchaseNote, List<ProductCategory>? categories, List<ProductTag>? tags, List<ProductImage>? images, List<ProductAttributes>? attributes, List<ProductDefaultAttributes>? defaultAttributes, List<int>? variations, List<Product>? groupedProducts, List<ProductMeta>? metaData})
→ Product
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ String
-
-
toMap()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
override