nativeMethodCallHandler method

Future nativeMethodCallHandler(
  1. MethodCall methodCall
)

Implementation

Future<dynamic> nativeMethodCallHandler(MethodCall methodCall) async {
  if (methodCall.method == "onBarcodeRead") {
    if (widget.onBarcodeRead != null)
      widget.onBarcodeRead!(methodCall.arguments);
  }

  return null;
}