BluetoothDevice class
Constructors
- BluetoothDevice({required String address, String? name, BluetoothDeviceType? type, BluetoothBondState? bondState, bool isConnected = false})
- BluetoothDevice constructor
- BluetoothDevice.fromMap(Map map)
-
Creates BluetoothDevice from Map
factory
Properties
- address → String
-
Device MAC address
final
- bondState → BluetoothBondState
-
Device bond state
final
- hashCode → int
-
Override for hash code
no setteroverride
- isConnected → bool
-
Device connection state
final
- name → String?
-
Device name (can be null)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BluetoothDeviceType
-
Device type (can be null)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts to Map
-
toString(
) → String -
Returns string representation
override
Operators
-
operator ==(
Object other) → bool -
Override for equality check
override