Bill constructor

Bill({
  1. String? barcode,
  2. String currency = toman,
  3. int? billId,
  4. int? paymentId,
})

The only constructor for Bill

Implementation

Bill({
  String? barcode,
  String currency = toman,
  int? billId,
  int? paymentId,
})  : _barcode = barcode,
      _currency = currencies.singleWhere((c) => currency == c),
      _billId = billId,
      _paymentId = paymentId;