SuperReaderRobot extension
Extensions on WidgetTester for interacting with a SuperReader the way a user would.
- on
Methods
-
doubleTapInParagraph(
String nodeId, int offset, [Finder? superReaderFinder]) → Future< void> -
Simulates a double tap at the given
offset
within the paragraph with the givennodeId
. -
dragSelectDocumentFromPositionByOffset(
{required DocumentPosition from, required Offset delta, Finder? superReaderFinder}) → Future< void> -
Simulates a user drag that begins at the
from
DocumentPosition and drags adelta
amount from that point. -
endDocumentDragGesture(
TestGesture gesture) → Future< void> -
Ends a drag gesture that's simulated with the given
gesture
. -
startDocumentDragFromPosition(
{required DocumentPosition from, Alignment startAlignmentWithinPosition = Alignment.center, Finder? superReaderFinder, PointerDeviceKind deviceKind = PointerDeviceKind.mouse}) → Future< TestGesture> -
Simulates a user drag that begins at the
from
DocumentPosition and returns the simulated gesture for further control. -
tapAtDocumentPosition(
DocumentPosition position, [Finder? superReaderFinder]) → Future< void> -
Taps at the center of the content at the given
position
within a SuperReader. -
tripleTapInParagraph(
String nodeId, int offset, [Finder? superReaderFinder]) → Future< void> -
Simulates a triple tap at the given
offset
within the paragraph with the givennodeId
.