InvoiceTotal class
Represents the total values of an invoice, including the subtotal, VAT amount, and the grand total.
The InvoiceTotal class holds the final calculations for an invoice, summarizing the subtotal before taxes, the VAT amount, and the final grand total after adding taxes. It is used to represent the overall financial summary of an invoice.
Constructors
- InvoiceTotal.new({required double subtotal, required double vatAmount, required double grandTotal})
- Constructs an InvoiceTotal with the provided amounts.
Properties
- grandTotal → double
-
The grand total amount of the invoice, including VAT.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtotal → double
-
The subtotal amount before VAT is applied.
final
- vatAmount → double
-
The total VAT amount applied to the invoice.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the InvoiceTotal instance into a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited