BillItem class

A class representing an item in a bill.

Constructors

BillItem({required String itemId, String? description, int? quantity, double? price})
Constructs a BillItem with the provided itemId. Optionally, you can provide a description, quantity, and price.

Properties

description String?
A description of the item (optional).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
itemId String
The unique identifier of the item.
getter/setter pair
price double?
The price of the item (optional).
getter/setter pair
quantity int?
The quantity of the item (optional).
getter/setter pair
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 this BillItem to a JSON format.
toString() String
A string representation of this object.
inherited

Operators

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