Invoice.from constructor
Invoice.from({})
Returns the new instance of Invoice based on arguments.
Implementation
Invoice.from({
required this.id,
required this.itemId,
required this.itemName,
required this.price,
required this.quantity,
required this.purchasedAt,
});