getDevices method
Implementation
@override
Future<List<BluetoothDevice>> getDevices() async {
final devices = await methodChannel.invokeMethod<List<dynamic>>('getDevices');
return devices?.map((e) => _deviceFromJson(e)).toList() ?? [];
}
@override
Future<List<BluetoothDevice>> getDevices() async {
final devices = await methodChannel.invokeMethod<List<dynamic>>('getDevices');
return devices?.map((e) => _deviceFromJson(e)).toList() ?? [];
}