flutter_bactrack library Null safety

Classes

BACtrackStatus
BACtrackStatus objects are emitted on the FlutterBactrack.statusStream. Not all states have an associated message. In these cases the message string is empty, it will never be null.
FlutterBactrack
This class provides the main interface to the BACtrack Flutter plugin. It is a singleton so only one instance will ever be created in a Flutter application.

Constants

connectToDeviceMethod → const String
"connectToDevice"
connectToNearestBreathalyzerMethod → const String
"connectToNearestBreathalyzer"
connectToNearestBreathalyzerWithTimeoutMethod → const String
"connectToNearestBreathalyzerWithTimeout"
disconnectMethod → const String
"disconnect"
getBreathalyzerBatteryVoltageMethod → const String
"getBreathalyzerBatteryVoltage"
getFirmwareVersionMethod → const String
"getFirmwareVersion"
getSerialNumberMethod → const String
"getSerialNumber"
getUseCountMethod → const String
"getUseCount"
initMethod → const String
"init"
startCountdownMethod → const String
"startCountdown"
startScanMethod → const String
"startScan"
stopScanMethod → const String
"stopScan"

Functions

getFlutterBactrackMethodChannelForTesting() MethodChannel
Allows way to access the private _channel data member for unit testing purposes.

Enums

BACtrackState
There is one corresponding BACtrackState for each of the methods in the BACtrackAPICallbacks object defined in the BACtrack SDK. These states are named the same as the callback methods minus the BACtrack prefix on each. The only exceptions are: