parentState property

State<StatefulWidget>? get parentState

Reference the 'parent' State object

Implementation

State? get parentState => _parentState;
set parentState (State<StatefulWidget>? state)

Set the 'parent' State object but only once!

Implementation

set parentState(State? state) => _parentState ??= state;