Product class

Constructors

Product(int quantity, String name, String description, double price, double tax)
Product.fromJson(String source)
factory
Product.fromMap(Map<String, dynamic> map)
factory

Properties

description String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
price String
getter/setter pair
quantity int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tax String
getter/setter pair

Methods

getPrice() double
getQuantity() int
getTax() double
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.
inherited

Operators

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