saveLastConnectedDevice method
save last connected bluetooth device
Implementation
Future<bool> saveLastConnectedDevice(BluetoothDevice device) async {
return (await _prefs)
.setString(_keyLastConnectedDevice, json.encode(device.toJson()));
}