StateAccessExtension extension

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

on

Methods

get<T>() → T

Available on BuildContext, provided by the StateAccessExtension extension

Gets the current value of state of type T without rebuilding the widget.
listen<T>() → T

Available on BuildContext, provided by the StateAccessExtension extension

Listens for state changes of type T and rebuilds the widget when it changes.