discover static method

discover let you explore all bluetooth printer nearby your device

Implementation

static Future<List<BluetoothPrinter>> discover() async {
  var results = await flutterPrinterChannel.invokeMethod('getBluetoothList');
  return List.from(results)
      .map((r) => BluetoothPrinter(
            name: r['name'],
            address: r['address'],
          ))
      .toList();
}