state property

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

@override
SingleChildState<SingleChildStatefulWidget> get state =>
    super.state as SingleChildState<SingleChildStatefulWidget>;