restart method

void restart()

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

Implementation

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