initState method

  1. @override
void initState()
override

The framework will call this method exactly once. Only when the StateX object is first created.

Implementation

@override
void initState() {
  super.initState();
  _inheritedKey = ObjectKey(this);
}