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