Product class

Represents a product with its skuId, price, quantity, and merchantId details.

Constructors

Product({required String skuId, required double? price, required int? quantity, String? merchantId})
Creates a new Product instance.
Product.fromMap(Map<String, dynamic> map)
Creates a Product instance from a Map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
merchantId String?
final
price double?
final
quantity int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skuId String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the Product object into a Map for communication via MethodChannel.
toString() String
A string representation of this object.
inherited

Operators

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