RefAPI<T> extension
- on
-
- Ref<
T>
- Ref<
Methods
-
bind(
BuildContext context, T create(), {void dispose(T value)?, Object? key, bool allowRebind = false}) → T -
Available on Ref<
Bind a value to this Ref for this and all descendant BuildContexts.T> , provided by the RefAPI extension -
bindLazy(
BuildContext context, T create(), {void dispose(T value)?, Object? key, bool allowRebind = false}) → void -
Available on Ref<
Same as bind butT> , provided by the RefAPI extensioncreate
is called lazily, i.e. only when the value is requested for the first. -
bindValue(
BuildContext context, T value) → T -
Available on Ref<
Bind a value to this Ref for this and all descendant BuildContexts.T> , provided by the RefAPI extension