RefAPI<T> extension

on

Methods

bind(BuildContext context, T create(), {void dispose(T value)?, Object? key, bool allowRebind = false}) → T

Available on Ref<T>, provided by the RefAPI extension

Bind a value to this Ref for this and all descendant BuildContexts.
bindLazy(BuildContext context, T create(), {void dispose(T value)?, Object? key, bool allowRebind = false}) → void

Available on Ref<T>, provided by the RefAPI extension

Same as bind but create is called lazily, i.e. only when the value is requested for the first.
bindValue(BuildContext context, T value) → T

Available on Ref<T>, provided by the RefAPI extension

Bind a value to this Ref for this and all descendant BuildContexts.