Item class
Constructors
- Item()
Properties
- code ↔ String?
-
Item identifier code or UPC/EAN
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- price ↔ double
-
Item per unit price
getter/setter pair
- qty ↔ int
-
Item quantity
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tax ↔ double
-
Item tax amount per unit
getter/setter pair
- title ↔ String?
-
Item product title
getter/setter pair
- total ↔ double
-
Item total value
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize object to JSON string
-
toString(
) → String -
A string representation of this object.
inherited
-
totalize(
) → Item - Totalize item price by quantity
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited