Item class

Constructors

Item.new({String? image, String? name, int? price, int? quantity, String? reference, String? sku, String? url})
Creates a new instance of Item.
Item.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
image String?
The URL of the image of the item.
final
name String?
The name of the item.
final
price int?
The price of the item. The value must be in cents.
final
quantity int?
The quantity of the item.
final
reference String?
A reference for the item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sku String?
A SKU for the item. SKU stands for Stock Keeping Unit.
final
url String?
The URL of the item.
final

Methods

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

Operators

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