ledger_flutter_plus library

Classes

BleCapabilities
BleCharacteristic
BleCommand
BleConnectionUpdate
BleDevice
BlePacker
BleSearchManager
BleService
BleUuidParser
BluetoothOptions
ByteDataReader
A class for parsing byte arrays.
ByteDataWriter
A class for building byte arrays with a BytesBuffer and a fixed-length work buffer.
BytesBuffer
A class for concatenating byte arrays efficiently.
ConnectionManager
DiscoveredLedger
GattGateway
GATT is an acronym for the Generic ATTribute Profile, and it defines the way that two Bluetooth Low Energy devices transfer data back and forth using concepts called Services and Characteristics.
LedgerBleConnectionManager
LedgerBleSearchManager
LedgerConnection
LedgerDevice
LedgerGattGateway
LedgerGattReader
LedgerInterface
LedgerOperation<T>
LedgerPacker
LedgerTransformer
LedgerUsbManager
ManufacturerData
Represents the manufacturer data of a BLE device.
ManufacturerDataFilter
PlatformConfig
Platform specific config to scan devices
ScanFilter
UniversalBle
UniversalBlePlatform
WebOptions
Web options to scan devices optionalServices is a list of service uuid's to ensure that you can access the specified services after connecting to the device, by default services from scanFilter will be used optionalManufacturerData is list of CompanyIdentifier's and used to add ManufacturerData in advertisement results of selected device from web dialog, by default manufacturerData from scanFilter will be used Checkout more details on web Note: you will only get advertisements if Experimental Flag is enabled in the browser

Extensions

ObjectExt on T
StringListToUUID on List<String>
Parse a list of strings to a list of UUIDs.

Functions

castBytes(List<int> bytes, {bool copy = false}) Uint8List
Cast the list of bytes into a typed Uint8List.
readAsBytes(Stream<List<int>> stream, {int? maxLength, bool copy = false}) Future<Uint8List>
Read stream into a typed byte buffer.
sliceStream(Stream<List<int>> stream, int sliceLength, {int? maxLength, bool copy = false}) Stream<Uint8List>
Read stream and slice the content into chunks with target/max length of sliceLength.

Typedefs

OnAvailabilityChange = void Function(AvailabilityState state)
OnConnectionChange = void Function(String deviceId, bool isConnected, String? error)
OnPairingStateChange = void Function(String deviceId, bool isPaired)
OnQueueUpdate = void Function(String id, int remainingQueueItems)
OnScanResult = void Function(BleDevice scanResult)
OnValueChange = void Function(String deviceId, String characteristicId, Uint8List value)
PermissionRequestCallback = Future<bool> Function(AvailabilityState status)