screen property

S get screen

The owning Screen instance, automatically resolved from the widget tree.

Available from initState onwards. Throws if accessed before then.

Implementation

S get screen => _stateRef!._screen as S;