CompositorHintResolver class
Target position from the compositor — the engine's main resolver.
Mechanics (verified against Flutter 3.47):
FollowerLayer.getLastTransform()(layer.dart:2707) stores the leader transform, recomputed every frame by the compositor at addToScene — scroll/re-layout/animations update the position with zero manual measuring from Dart;LayerLink.leaderSize(proxy_box.dart:4510) is written by the leader on every layout of the target.
The object captures a RenderFollowerLayer (the render object of
CompositedTransformFollower) once at construction and reads the layer on
each resolve(). The source is the follower itself, not link.leader:
LeaderLayer has no getLastTransform method.
- Implemented types
Constructors
- CompositorHintResolver(RenderFollowerLayer _follower)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
resolve(
) → HintPosition -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited