ItemDetail class

Represents details of an item.

Constructors

ItemDetail({required String id, required double price, required int quantity, required String name, String? imageUrl})
Creates a new instance of ItemDetail.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for the item.
final
imageUrl String?
The URL of the item's image.
final
name String
The name of the item.
final
price double
The price of the item.
final
quantity int
The quantity of the item.
final
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
toJson() Map<String, dynamic>
Converts the item details to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

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