FlutterBlue class
Constructors
Properties
-
a2dpConnectedDevices
→ Future<
List< BluetoothDevice> > -
no setter
-
connectedDevices
→ Future<
List< BluetoothDevice> > -
Retrieve a list of connected devices
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isAvailable
→ Future<
bool> -
Checks whether the device supports Bluetooth
no setter
-
isOn
→ Future<
bool> -
Checks if Bluetooth functionality is turned on
no setter
-
isScanning
→ Stream<
bool> -
no setter
- logLevel → LogLevel
-
no setter
-
onLogRecord
→ Stream<
String> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scanResults
→ Stream<
List< ScanResult> > -
no setter
-
state
→ Stream<
BluetoothState> -
Gets the current state of the Bluetooth module
no setter
Methods
-
dispose(
) → dynamic -
log(
String message, {LogLevel level = LogLevel.info}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestEnableBluetooth(
) → Future< void> -
requestMtu(
String deviceId, int mtu) → Future< void> -
setLogLevel(
LogLevel level) → Future -
startScan(
{ScanMode scanMode = ScanMode.lowLatency, List< Guid> withServices = const [], List<Guid> withDevices = const [], Duration? timeout, bool allowDuplicates = false}) → Stream<ScanResult> -
stopScan(
) → Future - Stops a scan for Bluetooth Low Energy devices
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FlutterBlue
-
no setter