BluetoothDevice class

Represents information about the device. Could be out-of-date. // @TODO . add updating the info via some fn

Constructors

BluetoothDevice({String? name, required String address, BluetoothDeviceType type = BluetoothDeviceType.unknown, bool isConnected = false, BluetoothBondState bondState = BluetoothBondState.unknown})
Construct BluetoothDevice with given values.
const
BluetoothDevice.fromMap(Map map)
Creates BluetoothDevice from map.
factory

Properties

address String
MAC address of the device or identificator for platform system (if MAC addresses are prohibited).
final
bonded bool
Tells whether the device is bonded (ready to secure connect).
no setter
bondState BluetoothBondState
Bonding state of the device.
final
hashCode int
The hash code for this object.
no setteroverride
isBonded bool
Tells whether the device is bonded (ready to secure connect).
no setter
isConnected bool
Class of the device. Describes is device connected.
final
name String?
Broadcasted friendly name of the device.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type BluetoothDeviceType
Type of the device (Bluetooth standard type).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Creates map from BluetoothDevice.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Compares for equality of this and other BluetoothDevice.
override