FlutterPinelabs class
An implementation of Pinelabs Platform Interface that uses method channels. docs for pinelabs: https://developer.pinelabs.com/plutus-smart/docs
Constructors
- FlutterPinelabs({HeaderModel? header})
-
An implementation of Pinelabs Platform Interface that uses method channels
docs for pinelabs: https://developer.pinelabs.com/plutus-smart/docs
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → HeaderModel?
-
header is the header of the request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
doTransaction(
{required TransactionType transactionType, String? billingRefNo, required double paymentAmount, String? mobileNumberForEChargeSlip, HeaderModel? overrideHeader}) → Future< ResponseModel?> - do transaction for pinelabs device. calls pinelab device with MethodId 1001.
-
getPlatformVersion(
) → Future< String?> - get the platform version
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printData(
{HeaderModel? overrideHeader, required PrintModel printRequest}) → Future< ResponseModel?> -
Print paper-receipt on Plutus Smart Device using
request
request
is a json string which can take any supported data as per pinelab documentation. -
sendRequest(
{required String request}) → Future< String?> -
send request for pinelabs device using
request
request
is a json string which can take any supported data While using request it is expeced by user to enter headers manually as well. e.g. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited