ReactterBuildContextExtension extension
Exposes methods to helps to get and listen ReactterContext's instance.
- on
Methods
-
use<
T extends ReactterContext?> ([String? id]) → T -
Available on BuildContext, provided by the ReactterBuildContextExtension extension
Gets the ReactterContext's instance ofTwith/withoutidfrom the closest ancestor of ReactterProvider. -
watch<
T extends ReactterContext?> ([ListenStates< T> ? listenStates]) → T -
Available on BuildContext, provided by the ReactterBuildContextExtension extension
Gets the ReactterContext's instance ofTfrom the closest ancestor of ReactterProvider and watch all ReactterHook or ReactterHook defined in first paramater(listenStates) to re-render the widget tree. -
watchId<
T extends ReactterContext?> (String id, [ListenStates< T> ? listenStates]) → T -
Available on BuildContext, provided by the ReactterBuildContextExtension extension
Gets the ReactterContext's instance ofTfrom the closest ancestor of ReactterProvider and watch all ReactterHook or ReactterHook defined in second paramater(listenStates) to re-render the widget tree.