state property

T get state

Provides the nearest ancestor StateController<T>.

Implementation

T get state => (StateElement._elements[this] as ParentStateElement<T>).otherState;