getBarcodeStreamReceiver static method

Future<void> getBarcodeStreamReceiver(
  1. void updateListener(
    1. String
    )
)

Implementation

static Future<void> getBarcodeStreamReceiver(
    void Function(String) updateListener) async {
  _channel.setMethodCallHandler((MethodCall call) async {
    if (call.method == 'updateBarcodeScannerValue') {
      updateListener(call.arguments);
    }
  });
}