PaymentItem constructor

const PaymentItem({
  1. required String amount,
  2. String? label,
  3. PaymentItemType type = PaymentItemType.total,
  4. PaymentItemStatus status = PaymentItemStatus.unknown,
})

Creates a new payment item with the specified parameters, defaulting to a total type, and an unknown status.

Implementation

const PaymentItem({
  required this.amount,
  this.label,
  this.type = PaymentItemType.total,
  this.status = PaymentItemStatus.unknown,
});