StateAccessExtension extension

Extension methods for accessing state in the context of a widget build.

on

Methods

get<T>() → T
Gets the current value of state of type T without rebuilding the widget.
listen<T>() → T
Listens for state changes of type T and rebuilds the widget when it changes.