dispose method

void dispose()

Disposes the MobileScannerController and closes all listeners.

If you call this, you cannot use this controller object anymore.

Implementation

void dispose() {
  stop();
  events?.cancel();
  _barcodesController.close();
}