state property

ViewState<StatefulView<VM>, VM> get state

The State instance associated with this location in the tree.

There is a one-to-one relationship between State objects and the StatefulElement objects that hold them. The State objects are created by StatefulElement in mount.

Implementation

ViewState<StatefulView<VM>, VM> get state => _state!;