nativeMethodCallHandler method

Future nativeMethodCallHandler(
  1. MethodCall methodCall
)

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;
}