Item class

Annotations
  • @JsonSerializable()

Constructors

Item()
Item.create({String id, String name, int quantity, double amount})
Item.fromJson(Map<String, dynamic> json)
factory

Properties

amount double
read / write
id String
read / write
name String
read / write
quantity int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getAmount() double
getId() String
getName() String
getQuantity() int
setAmount(double amount) → void
setId(String id) → void
setName(String name) → void
setQuantity(int quantity) → void
toJson() Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited