BluetoothDevice class
BLE 设备信息模型。
作用:承载扫描到的设备标识、名称与信号强度,供列表展示与连接使用。
调用步骤:
Constructors
- BluetoothDevice({required String id, required String name, required int rssi})
-
const
- BluetoothDevice.fromMap(Map map)
-
从原生 Map 反序列化设备信息。
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - 序列化为 Map,便于调试或二次传递。
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited