ControllerScopeBuildContextExtension extension

Extension methods for BuildContext to simplify the use of ControllerScope.

on

Methods

controllerOf<C extends Listenable>({bool listen = false}) → C

Available on BuildContext, provided by the ControllerScopeBuildContextExtension extension

The state from the closest instance of this class that encloses the given context. e.g. context.controllerOf<MyStateController>()