play method

Widget play()

Implementation

Widget play() {
  Future<void> waitForIT() async {
    await _wait!();
    _didNotInitialized = false;

    updateTheWholeApp();
  }

  if (_didNotInitialized) {
    // print("HDM _didNotInitialized");

    if (_wait != null) {
      //print("Wait");
      waitForIT();

      return HDM(
          app: this,
          child: _fullAppKey.keyBuild((box) {
            if (_didNotInitialized) {
              //print("case 1");
              return _initial!(box);
            } else {
              //print("case 3");
              return _statsHere(box);
            }
          }));
    }
    _didNotInitialized = false;
  }
  return HDM(app: this, child: _fullAppKey.keyBuild((box) => _statsHere(box)));
}