init method

dynamic init()

Initialize your widget in init.

  • init is called in the initState method. This method is async so you can call methods that are Futures.

Implementation

init() async {
  if (!requiresBoot) {
    return;
  }
  awaitData(
    perform: () async {
      await boot();
    },
    shouldSetStateBefore: false,
  );
}