getBluetoothDevices method

  1. @override
Future<List<BluetoothDeviceModel>> getBluetoothDevices()
override

Implementation

@override
Future<List<BluetoothDeviceModel>> getBluetoothDevices() async {
  final result =
      await _channel.invokeMethod(PrinterMethod.getBluetoothDevices.value);
  return List<Map<dynamic, dynamic>>.from(result)
      .map((e) => BluetoothDeviceModel.fromMap(Map<String, dynamic>.from(e)))
      .toList();
}