McpGestureSimulator class
Low-level gesture simulator.
Operates on global screen coordinates. The caller is responsible for calculating the correct coordinates from the widget's RenderBox.
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
-
centerOf(
RenderBox renderBox) → Offset - Calculates the center of a RenderBox in global screen coordinates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
simulateScroll(
Offset position, {double deltaX = 0, double deltaY = 0}) → void -
Simulates a scroll event at
positionwith the given deltas. -
simulateSwipe(
Offset start, Offset end, Duration duration) → void -
Simulates a swipe from
starttoendoverduration. -
simulateTap(
Offset position) → void -
Simulates a tap (quick touch) at the
position. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → McpGestureSimulator
-
final