ResolvedCoord class
One node's live geometry. Global coords in logical pixels.
painted and hittable are independent (see §3, §9).
Constructors
- ResolvedCoord({required String glintId, required ({double x, double y}) logicalCenter, required ({double h, double w, double x, double y}) logicalBounds, required double devicePixelRatio, required ({double h, double w}) logicalViewSize, required double nearestAncestorOpacity, required bool nearestAncestorVisible, required bool hittable, ({double h, double w, double x, double y})? clip, double keyboardInset = 0, bool hitTestReal = false, String? hitBy})
Properties
- centerInClip → bool
-
True when the centre sits inside the nearest scroll viewport (or there is none).
no setter
- centerOnViewport → bool
-
True when the resolved center lies inside the viewport — a gesture can
land there. Center goes through localToGlobal, so this is transform-safe.
no setter
- centerUnderKeyboard → bool
-
True when the on-screen keyboard covers the centre.
no setter
- clip → ({double h, double w, double x, double y})?
-
Global rect of the nearest scroll viewport; content outside it is clipped away.
final
- devicePixelRatio → double
-
final
- glintId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNonZeroBounds → bool
-
no setter
- hitBy → String?
-
What a tap at the centre would reach instead, when the real hit test misses the target.
final
- hittable → bool
-
final
- hitTestReal → bool
-
True when hittable comes from Flutter's own hit test rather than the ancestor approximation.
final
- intersectsViewport → bool
-
no setter
- keyboardInset → double
-
Logical height the on-screen keyboard covers at the bottom of the view.
final
- logicalBounds → ({double h, double w, double x, double y})
-
final
- logicalCenter → ({double x, double y})
-
final
- logicalViewSize → ({double h, double w})
-
final
- nearestAncestorOpacity → double
-
Every ancestor opacity multiplied (Opacity, AnimatedOpacity, FadeTransition); 0 means the node paints nothing.
final
- nearestAncestorVisible → bool
-
final
- painted → bool
-
no setter
- physicalCenter → ({int x, int y})
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
warnings
→ List<
String> -
Non-fatal observations for ActionResult.warnings.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited