initState method
- @mustCallSuper
inherited
The framework will call this method exactly once.
Only when the StateX
object is first created.
Implementation
@mustCallSuper
void initState() {
/// Override this method to perform initialization that depends on the
/// location at which this object was inserted into the tree.
/// (i.e. Subscribe to another object it depends on during [initState],
/// unsubscribe object and subscribe to a new object when it changes in
/// [didUpdateWidget], and then unsubscribe from the object in [dispose].
}