CieloLioHelper class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
-
batteryLevel
→ Future<
double> -
Returns the battery level or
-1
if something goes wrongno setter -
ec
→ Future<
String> -
Returns the establishment code from InfoManager of Lio
no setter
-
logicNumber
→ Future<
String> -
Returns the logic number from InfoManager of Lio
no setter
Static Methods
-
cancelPayment(
CancelRequest request, dynamic callback(PaymentResponse response)) → dynamic -
Sends a CancelRequest to Lio and waits until the cancelment is finished or canceled to execute
callback
-
checkout(
CheckoutRequest request, dynamic callback(PaymentResponse response)) → dynamic -
Sends a CheckoutRequest to Lio and waits until the payment is finished or canceled to execute
callback
-
enqueue(
String text, PrintAlignment alignment, int size, int typeface) → dynamic - Enqueue text and its style but does not print
-
init(
{String? host, SchemeAggregate? schemes}) → dynamic - Sets host and schemes for print, checkout and cancel responses from Lio
-
printQueue(
dynamic callback(LioResponse response)) → dynamic -
Print all texts enqueued by CieloLioHelper.enqueue() and execute
callback
when it's done