executeLoader method

void executeLoader()

Implementation

void executeLoader() async {
  loading.progress();

  DelayBlock? block;

  if (delay != null) {
    block = DelayBlock(delay!);
  }

  await Control.factory.onReady();

  final result = await load();

  if (loading.hasError) {
    return;
  }

  if (block != null) {
    await block.finish();
  }

  final state = Parse.getArg<AppState>(result, defaultValue: AppState.main);
  notifyControl(state, result);
}