initState method

  1. @override
  2. @mustCallSuper
void initState()
override

Supply a GlobalKey to the CupertinoApp and the MaterialApp

Implementation

@override
@mustCallSuper
void initState() {
  super.initState();
  cupertinoKey = GlobalKey();
  materialKey = GlobalKey();
  // If some inline initState() is defined.
  if (inInitState != null) {
    inInitState!();
  }
}