nativeMethodCallHandler method
Implementation
Future<dynamic> nativeMethodCallHandler(MethodCall methodCall) async {
if (methodCall.method == "onTextRead") {
widget.onTextRead(methodCall.arguments["barcode"], methodCall.arguments["values"], methodCall.arguments["path"],
methodCall.arguments["orientation"]);
}
return null;
}