Invoice class

Constructors

Invoice.from({required String id, required String itemId, required String itemName, required int price, required int quantity, required DateTime purchasedAt})
Returns the new instance of Invoice based on arguments.

Properties

hashCode int
The hash code for this object.
no setteroverride
id String
The id
final
itemId String
The item id
final
itemName String
The item name
final
price int
The price
final
purchasedAt DateTime
The purchased datetime
final
quantity int
The quantity
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
toString() String
A string representation of this object.
override

Operators

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