getDevices method
Gets list of all the Paired Bluetooth Devices
Implementation
Future<List<BtDevice>> getDevices() async {
List devices = await _channel.invokeMethod('getBtDevices');
List<BtDevice> responseList = [];
devices.forEach((element) {
BtDevice device = BtDevice.fromJson(element);
responseList.add(device);
});
return responseList;
}