restart method

void restart()

This method can be used to restart scanning the event that it was paused.

Implementation

void restart() {
  (() async {
    await QrMobileVision.stop();
    setState(() {
      _asyncInitOnce = null;
    });
  })();
}