Unhandled Exception: MissingPluginException
Artyemlom opened this issue · 0 comments
Artyemlom commented
════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel arp_scanning:
MissingPluginException(No implementation found for method listen on channel arp_scanning)
When the exception was thrown, this was the stack
#0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:154
<asynchronous suspension>
#1 EventChannel.receiveBroadcastStream.<anonymous closure>
package:flutter/…/services/platform_channel.dart:486
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by services library ══════════════════════════════════
MissingPluginException(No implementation found for method listen on channel arp_scanFinished)
════════════════════════════════════════════════════════════════════════════════
Future<void> scanNetwork() async {
ArpScanner.onScanning.listen((Device device) {
print("Mac:${device.mac} ip:${device.ip} hostname:${device.hostname} time:${device.time} vendor:${device.vendor} \n");
});
ArpScanner.onScanFinished.listen((List<Device> devices) {
print("total: ${devices.length}");
});
await ArpScanner.scan();
print('Done');
}
Flutter 2.10.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision db747aa133 (8 days ago) • 2022-02-09 13:57:35 -0600
Engine • revision ab46186b24
Tools • Dart 2.16.1 • DevTools 2.9.2
arp_scanner: 1.2.7