longPressDownInParagraph method
Future<TestGesture>
longPressDownInParagraph(
- String nodeId,
- int offset, {
- TextAffinity affinity = TextAffinity.downstream,
- Finder? superEditorFinder,
Simulates a long-press down at the given text offset
within the paragraph
with the given nodeId
, and returns the TestGesture so that a test can
decide to drag it, or release.
Implementation
Future<TestGesture> longPressDownInParagraph(
String nodeId,
int offset, {
TextAffinity affinity = TextAffinity.downstream,
Finder? superEditorFinder,
}) async {
final gesture = await tapDownInParagraph(nodeId, offset, affinity: affinity, superEditorFinder: superEditorFinder);
await pump(kLongPressTimeout + kPressTimeout);
return gesture;
}