BluetoothDevice class
Represents a discovered or connected Bluetooth device
Contains all necessary information about a Bluetooth device including its capabilities, connection state, and device-specific metadata.
Constructors
-
BluetoothDevice({required String name, required int rssi, required String uuid, required List<
BluetoothCapabilities> capabilities, required ConnectionState connectionState, required DeviceType deviceType})
Properties
-
capabilities
↔ List<
BluetoothCapabilities> -
List of Bluetooth capabilities supported by this device
Used to determine what data can be received from the device
getter/setter pair
- connectionState ↔ ConnectionState
-
Current connection state of the device
getter/setter pair
- deviceType ↔ DeviceType
-
Type classification of the device
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- name ↔ String
-
Human-readable device name (e.g., "Rolla Band Pro")
getter/setter pair
- rssi ↔ int
-
Received Signal Strength Indicator in dBm
Typical range: -100 (weak) to 0 (strong)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid ↔ String
-
Unique device identifier used for connection operations
Format varies by platform (UUID on iOS, MAC address on Android)
getter/setter pair
Methods
-
encode(
) → Object -
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.
override
Static Methods
-
decode(
Object result) → BluetoothDevice