Product class

Product helper class

Constructors

Product({required String ref, String? name, String? group, Params? parameters})
Constructor sets the ref, name?, group? and params? properties

Properties

hashCode int
The hash code for this object.
no setterinherited
payload Map<EAPropertyKey, dynamic>
internal payload Map<K, V>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAmount(double amount) → void
Sets the amount property
setGroup(String group) → void
Sets the group property
setName(String name) → void
Sets the name property
setParams(Params parameters) → void
Sets the params property
setQuantity(int quantity) → void
Sets the quantity property
setRef(String ref) → void
Sets the ref property
toJson() Map<String, dynamic>
Serializes payload
inherited
toString() String
A string representation of this object.
inherited

Operators

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