TestableGestures class
Set of gestures that Testable widgets will respond to when the TestRunner is enabled. Applications can (should) set the gestures based on their typical usage patterns such that the gestures have a minimal amount of conflict with application based gestures.
The default set of gestures ensures all available Testable gestures are available within an application, but this may or may not be appropriate for your specific application.
Given that the default set goes wide, it is recommended that applications
explicitly set values to null
for any gestures that should not be used.
- Annotations
Constructors
- TestableGestures({TestableGestureAction? overlayDoubleTap = TestableGestureAction.toggle_overlay, TestableGestureAction? overlayLongPress = TestableGestureAction.toggle_global_overlay, TestableGestureAction? overlayTap = TestableGestureAction.open_test_actions_page, TestableGestureAction? widgetDoubleTap = TestableGestureAction.toggle_overlay, TestableGestureAction? widgetForcePressEnd, TestableGestureAction? widgetForcePressStart, TestableGestureAction? widgetLongPress = TestableGestureAction.open_test_actions_dialog, TestableGestureAction? widgetLongPressMoveUpdate, TestableGestureAction? widgetSecondaryLongPress, TestableGestureAction? widgetSecondaryTap, TestableGestureAction? widgetTap})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- overlayDoubleTap → TestableGestureAction?
-
Action that will execute when an individual Testable overlay is double
tapped.
final
- overlayLongPress → TestableGestureAction?
-
Action that will execute when an individual Testable overlay is long
pressed.
final
- overlayTap → TestableGestureAction?
-
Action that will execute when an individual Testable overlay is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widgetDoubleTap → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
is double tapped.
final
- widgetForcePressEnd → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
receives a force press end event.
final
- widgetForcePressStart → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
receives a force press start event.
final
- widgetLongPress → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
is long pressed.
final
- widgetLongPressMoveUpdate → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
receives a move update event after long pressing the widget.
final
- widgetSecondaryLongPress → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
is long pressed with the secondary button.
final
- widgetSecondaryTap → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
is tapped with the secondary button.
final
- widgetTap → TestableGestureAction?
-
Action that will execute when a Testable widget with the overlay hidden
is tapped.
final
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