initState method

  1. @override
void initState()
override

Initialise the state

Implementation

@override
void initState() {
  super.initState();

  /// If the LoadingScreen widget has an initial message set, then the default
  /// message in the MessageState class needs to be updated
  if (widget.initialMessage != null) {
    initialMessage = widget.initialMessage!;
  }

  /// We require the initializers to run after the loading screen is rendered
  SchedulerBinding.instance.addPostFrameCallback((_) {
    runInitTasks();
  });
}