EffectTarget<T> class

Resolves to the nearest ancestor implementing T.

Resolution happens on resolve, which the host calls from its own build - early enough that the rest of the body can use value, and re-run whenever the host rebuilds, so a reparented host finds its new target rather than holding the old one.

Constructors

EffectTarget(Node _host)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T?
The resolved ancestor, or null before the host has ever built.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve() → void
Re-resolves against the host's current ancestors, and drops the result again when the host unmounts or rebuilds.
toString() String
A string representation of this object.
inherited

Operators

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