ContextRefExt extension

on

Properties

ref WatchableRef
Access the Ref using this BuildContext.
no setter

Methods

dispose<N extends BaseNotifier<T>, T>(BaseProvider<N, T> provider) → void
Shorthand for context.ref.dispose(). See Ref.dispose for more information.
notifier<N extends BaseNotifier<T>, T>(NotifyableProvider<N, T> provider) → N
Shorthand for context.ref.notifier(). See Ref.notifier for more information.
read<N extends BaseNotifier<T>, T, R>(Watchable<N, T, R> watchable) → R
Shorthand for context.ref.read(). See Ref.read for more information.
redux<N extends BaseReduxNotifier<T>, T>(ReduxProvider<N, T> provider) Dispatcher<N, T>
Shorthand for context.ref.redux(). See Ref.redux for more information.
watch<N extends BaseNotifier<T>, T, R>(Watchable<N, T, R> watchable, {ListenerCallback<T>? listener, bool rebuildWhen(T prev, T next)?}) → R
Shorthand for context.ref.watch(). See WatchableRef.watch for more information.