state property
ComponentState<StatefulComponent>
get
state
Lazily initializes and returns this component’s state.
The state is created via StatefulComponent.createState, linked to this instance, and its ComponentState.initState is called.
Implementation
ComponentState get state {
_state ??= _initState();
return _state!;
}