onScanResult static method
Implementation
static Stream<dynamic> onScanResult() {
// Handler to listen to method calls from the native side
methodChannel.setMethodCallHandler((MethodCall call) async {
log('method : ${call.method}');
if (call.method == "onScanResults") {
scanResultStreamController.add(call.arguments);
}
});
return scanResultStreamController.stream;
}