Bill class

The means to gathering information from barcode or id and payment id of a bill

Constructors

Bill({String? barcode, String currency = toman, int? billId, int? paymentId})
The only constructor for Bill

Properties

amount int
Takes amount of the Bill from payment ID
no setter
barcode String
Creates barcode of the Bill from bill ID and payment ID
no setter
billType String
Takes bill type of the Bill form bill ID
no setter
hashCode int
The hash code for this object.
no setterinherited
isBillIdValid bool
Validates bill ID of the Bill
no setter
isBillValid bool
Validates the Bill by bill ID and payment ID
no setter
isPaymentIdValid bool
Validates payment ID of the bill
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() Map<String, dynamic>
You can invoke the object of the Bill to get all information about the Bill
findByBarcode([String? barcode]) List<int>
Finds bill ID and payment ID from the given barcode or barcode class member which it returns List<int> - first one is bill ID , second one is payment ID
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