saveLastConnectedDevice method

Future<bool> saveLastConnectedDevice(
  1. BluetoothDevice device
)

save last connected bluetooth device

Implementation

Future<bool> saveLastConnectedDevice(BluetoothDevice device) async {
  return (await _prefs)
      .setString(_keyLastConnectedDevice, json.encode(device.toJson()));
}