discoverBluetoothDevices method

Future<List<ZebraBluetoothDevice>> discoverBluetoothDevices ()

Implementation

static Future<List<ZebraBluetoothDevice>> discoverBluetoothDevices() async {
  dynamic d = await _channel.invokeMethod("discoverBluetoothDevices");

  List<ZebraBluetoothDevice> devices = List();

  d.forEach((k, v) {
    devices.add(ZebraBluetoothDevice(k, v));
  });

  return devices;
}