RefBinding class final
How an eN ref finds its control again once the element it was minted
from has left the tree.
query carries the node's own label and its DuskQuery.matchIndex among every node sharing that label; matchCount is how many such nodes the minting snapshot saw. The pair is only trusted while the live tree still has exactly matchCount namesakes: a different count means the index may now name a different control, and a ref that would land on the wrong control is worse than one that reports itself defunct.
route pins the pair to the screen the node lived on: a label count taken over the whole tree cannot tell the login page's only "Email" from the next page's only "Email" once navigation swapped one for the other.
- Annotations
Constructors
-
RefBinding({required DuskQuery query, required int matchCount, WeakReference<
Route> ? route}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- matchCount → int
-
Nodes carrying the bound label when the ref was minted.
final
- query → DuskQuery
-
The label predicate plus index that re-finds the node.
final
-
route
→ WeakReference<
Route> ? -
The ModalRoute the node lived on when the ref was minted, or
nullwhen it had none. Held weakly so a ref outliving its screen never keeps a popped route alive; a collected target means the screen is gone, and relocation treats that as a different route.final - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited