InvoiceLine class

Represents a line item in an invoice, including details such as the item name, quantity, price, total, and tax information.

The InvoiceLine class is used to model an individual item in an invoice, capturing details such as the name, quantity, unit price, total amount, and the associated tax information for proper invoicing and tax reporting.

Constructors

InvoiceLine.new({required String name, required String quantity, required String price, required String total, required TaxDetails tax})
Constructs an InvoiceLine with the provided details.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
An optional identifier for the invoice line.
getter/setter pair
name String
The name or description of the invoiced item.
getter/setter pair
price String
The unit price of the item being invoiced.
getter/setter pair
quantity String
The quantity of the item being invoiced.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tax TaxDetails
The tax details applied to this invoice line.
getter/setter pair
total String
The total amount for the item, including any applicable tax.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Converts the InvoiceLine instance into a JSON map.
toString() String
A string representation of this object.
inherited
toXml(XmlBuilder builder, int id) → void
Converts the InvoiceLine instance into XML format using the XmlBuilder.

Operators

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