FlutterNewposSdk class

The main class of this plugin. This class has all the available functions of the N98 device.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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

instance FlutterNewposSdk
read-only
isConnectedToDevice Stream<bool>
Returns whether we are scanning as a stream
read-only
isScanning Stream<bool>
Returns whether we are scanning as a stream
read-only
isScanningNow bool
Are we scanning right now ?
read-only
logLevel LogLevel
Log level
read-only
scanResults Stream<List<DeviceScanned>>
Returns a stream of List results while a scan is in progress.
read-only

Static Methods

addAid(String aid) Future<void>
Adds an AID to the FlutterPos plugin.
addRid(String rid) Future<void>
Adds an RID to the newPOS device.
clearAids() Future<void>
completeTransaction({required int amount}) Future<CompleteTransactionResult>
Completes a transaction for the specified amount and returns the result.
connectToBluetoothDevice(String macAddress) Future<bool>
Connects to a Bluetooth device, if in range, with the specified MAC address.
disconnectDevice() Future<bool>
displayText({required String text, Duration duration = const Duration(seconds: 3)}) Future<bool>
Displays text on the newPOS screen for a specified period of time.
getCardNumber() Future<ReadCardInfo?>
getDeviceInfo() Future<DeviceInfo>
Returns the newPOS's device information.
scanBluetoothDevices({Duration? timeout}) Future<void>
Starts a scan for Bluetooth devices and returns a stream of the results.
stopScan() Future<void>
Stops the scan for Bluetooth devices.
updateMasterKey({required String masterKey, bool ifDukpt = false}) Future<void>
Updates the master key of the newPOS.