PointerListener class
Invokes mouse callbacks for events hit-tested within child's bounds.
- Inheritance
-
- Object
- Widget
- RenderObjectWidget
- SingleChildRenderObjectWidget
- PointerListener
Constructors
- PointerListener({Key? key, Widget? child, MouseCursor? mouseCursor, MouseEventHandler? onPointerDown, MouseEventHandler? onPointerUp, MouseEventHandler? onPointerMove, MouseEventHandler? onPointerScroll})
-
Configures callbacks for hit-tested mouse events over
child.const
Properties
- child → Widget?
-
Optional widget attached through this render object's single-child edge.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how this widget replaces another of the same type.
finalinherited
- mouseCursor → MouseCursor?
-
Pointer shape over this region; null defers to an annotated ancestor.
final
- onPointerDown → MouseEventHandler?
-
Called for a hit-tested mouse-button press.
final
- onPointerMove → MouseEventHandler?
-
Called for hit-tested mouse movement.
final
- onPointerScroll → MouseEventHandler?
-
Called for a hit-tested mouse-wheel event.
final
- onPointerUp → MouseEventHandler?
-
Called for a hit-tested mouse-button release.
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