createState method Null safety

  1. @mustCallSuper
  2. @override
State<StatefulWidget> createState()
@mustCallSuper, override

Avoid overriding this function. createEmpire handles the creation of the widget state. Overriding this function can have unintended side affects. You've been warned.

Implementation

@mustCallSuper
@override
State<StatefulWidget> createState() {
  // ignore: no_logic_in_create_state
  return createEmpire();
}