LineItem class
Represents a line item in a transaction
Constructors
- LineItem({required double amount, required LineItemType type, required String label, LineItemStatus status = LineItemStatus.finalStatus})
- Create a digital wallet line item
- LineItem.lineItem({required double amount, required String label, LineItemStatus status = LineItemStatus.finalStatus})
-
Convenience constructor for a line item of type LineItemType.lineItem
factory
- LineItem.subtotal({required double amount, String label = DataKeys.lineItemSubtotalLabelKey, LineItemStatus status = LineItemStatus.finalStatus})
-
Convenience constructor for a line item of type LineItemType.subtotal
factory
- LineItem.tax({required double amount, String label = DataKeys.lineItemTaxLabelKey, LineItemStatus status = LineItemStatus.finalStatus})
-
Convenience constructor for a line item of type LineItemType.tax
factory
Properties
- amount → double
-
The amount of the line item
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
The label of the line item
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → LineItemStatus
-
The status of the line item
final
- type → LineItemType
-
The type of the line item
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited