Something that can be rebuilt. It might be
- a
BuildContext
, - a notifier (e.g. from a ViewProvider), or
- a WatchAction.
A WatchableRef holds a Rebuildable to make WatchableRef.watch work.
- Implemented types
- Implementers
Properties
- debugLabel → String
-
A debug label for this Rebuildable.
no setteroverride
- disposed → bool
-
Whether this Rebuildable is disposed and should be removed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWidget → bool
-
Whether this Rebuildable is an
ElementRebuildable
. This is a workaround for the fact thatElementRebuildable
is in refena_flutter so we cannot refer it from here.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListenerTarget(
BaseNotifier notifier) → void -
Only for
ElementRebuildable
. Noop for others. Notifies that a newBaseNotifier
is being listened. This should be called within a build method so it can unwatch old notifiers in the next microtask. -
onDisposeWidget(
) → void -
Only for
ElementRebuildable
. Noop for others. Allows for further cleanup logic. -
rebuild(
ChangeEvent? changeEvent, RebuildEvent? rebuildEvent) → void -
Schedule a rebuild (in the next frame).
Optionally pass the
changeEvent
, orrebuildEvent
that triggered the rebuild. The event is consumed by the ViewProviderNotifier that fires the RebuildEvent. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited