state property

Object? state
final

The state of the application in the location. The app can have different states even in the same location. For example, the text inside a TextField or the scroll position in a ScrollView. These widget states can be stored in the state.

state must be serializable

Implementation

final Object? state;