Product class

Constructors

Product({required String name, required int quantity, required int unitAmount})
Product.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Product name (e.g. "I phone 12 pro max")
getter/setter pair
quantity int
Product quantity (e.g. 2)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unitAmount int
Product unit amount in Bisa (e.g. 1000 Bisa = 1.000 OMR)
getter/setter pair

Methods

copyWith({String? name, int? quantity, int? unitAmount}) Product
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