startDiscovery method

  1. @override
Future<String?> startDiscovery()
override

Starts the discovery process for available printers.

This method initiates printer discovery on the native platform and streams the discovered printers through eventChannel.

Returns a Future containing the result of the discovery process as a String.

Implementation

@override
Future<String?> startDiscovery() async {
  final result = await methodChannel.invokeMethod<String>('startDiscovery');
  return result;
}