McpGestureSimulator class

Simulador de gestos de bajo nivel.

Opera sobre coordenadas globales de pantalla. El llamador es responsable de calcular las coordenadas correctas a partir del RenderBox del widget.

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
Calcula el centro de un RenderBox en coordenadas globales de pantalla.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
simulateScroll(Offset position, {double deltaX = 0, double deltaY = 0}) → void
Simula un evento de scroll en position con los deltas dados.
simulateSwipe(Offset start, Offset end, Duration duration) → void
Simula un swipe (deslizamiento) desde start hasta end en duration.
simulateTap(Offset position) → void
Simula un tap (toque rápido) en la posición position.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance McpGestureSimulator
final