ScanKitController constructor

ScanKitController()

Implementation

ScanKitController() {
  var eventChannel = EventChannel('xyz.bczl.flutter_scankit/event');

  _eventSubscription = eventChannel.receiveBroadcastStream()
      .listen(_eventHandler,cancelOnError: false);

  _channel = const MethodChannel('xyz.bczl.flutter_scankit/ScanKitWidget');
}