BluetoothDevice class

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

Constructors

BluetoothDevice({String name, 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).
@Deprecated('Use `isBonded` instead'), read-only
bondState BluetoothBondState
Bonding state of the device.
final
hashCode int
The hash code for this object. [...]
read-only, override
isBonded bool
Tells whether the device is bonded (ready to secure connect).
read-only
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.
read-only, inherited
type BluetoothDeviceType
Type of the device (Bluetooth standard type).
final

Methods

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

Operators

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