RebuildEvent<T> class

A ViewProvider has been rebuilt. (NOT widget rebuild) This is very similar to a ChangeEvent but instead of one action, there can be multiple pairs of actions and notifiers.

Inheritance

Constructors

RebuildEvent({required Rebuildable rebuildable, required List<AbstractChangeEvent> causes, required LabeledReference? debugOrigin, required T prev, required T next, required List<Rebuildable> rebuild})

Properties

causes List<AbstractChangeEvent>
The causes leading to the rebuild. They are batched together to avoid unnecessary rebuilds in the same frame. It might be empty if it's the first build of a parameter of a ViewFamilyProviderNotifier.
final
debugLabel String
A label to be used in debug messages and by the RefenaTracingPage.
no setteroverride
debugOrigin LabeledReference?
Non-null if the rebuild was triggered by Ref.rebuild. In this case, the causes list is empty. There can only be one debugOrigin at most since there is no batching.
final
hashCode int
The hash code for this object.
no setteroverride
millisSinceEpoch int
The timestamp when the event was fired. We use int to save memory.
finalinherited
next → T
The state after the change.
finalinherited
prev → T
The previous state before the event.
finalinherited
rebuild List<Rebuildable>
A list of rebuildable objects that should be rebuilt in the next tick. This is the case if a Rebuildable is watching the current provider.
finalinherited
rebuildable Rebuildable
The view notifier that has been rebuilt.
final
refenaId int
The id.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateType Type
The generic type of the state.
no setterinherited

Methods

compareIdentity(IdReference other) bool
Returns true, if the other reference has the same id.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override