getDevices method

  1. @override
Future<List<BluetoothDevice>> getDevices()
override

Implementation

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