BluetoothDevice.fromMap constructor
Implementation
factory BluetoothDevice.fromMap(Map<String, dynamic> map) {
return BluetoothDevice(
name: map['name'] ?? '',
address: map['address'] ?? '',
isConnected: map['isConnected'] ?? false,
);
}