AbsorbPointer class
A complete pointer boundary: the cells this widget covers consume every pointer interaction — taps, secondary taps, drags, wheel scroll, hover — and block the dispatcher's click-to-focus, so nothing painted underneath can be invisibly activated, scrolled, hovered, or focused.
This is the input counterpart of painting an opaque overlay: an overlay that covers cells visually must also cover them for input, or clicks fall through to hidden widgets. The debug shell's floating panel uses this boundary. Its descendant controls remain interactive: hit testing visits them before the boundary and stops here before reaching content behind it.
- Inheritance
-
- Object
- Widget
- RenderObjectWidget
- SingleChildRenderObjectWidget
- AbsorbPointer
- Available extensions
Constructors
- AbsorbPointer({Key? key, PointerTapCallback? onTap, required Widget child})
-
const
Properties
- child → Widget?
-
The widget below this widget in the tree.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- onTap → PointerTapCallback?
-
Called when a left-button tap lands on this boundary.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
createElement(
) → SingleChildRenderObjectElement -
Creates the Element that will mount this widget into the tree.
override
-
createRenderObject(
BuildContext context) → RenderObject -
Creates the render object backing this widget. Called once when the
element first mounts.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRenderObject(
BuildContext context, covariant RenderPointerListener renderObject) → void -
Applies any changes from a new widget instance to the existing
render object. Default is a no-op; subclasses override when the
widget carries layout/paint configuration.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited