tapInParagraph method

Future<void> tapInParagraph(
  1. String nodeId,
  2. int offset, {
  3. TextAffinity affinity = TextAffinity.downstream,
  4. Finder? superEditorFinder,
})

Simulates a tap at the given offset within the paragraph with the given nodeId.

This simulated interaction is intended primarily for purposes other than changing the document selection, such as tapping on a link to launch a URL.

To place the caret in a paragraph, consider using placeCaretInParagraph, which might choose a different execution path to simulate the selection change.

Implementation

Future<void> tapInParagraph(
  String nodeId,
  int offset, {
  TextAffinity affinity = TextAffinity.downstream,
  Finder? superEditorFinder,
}) async {
  await _tapInParagraph(nodeId, offset, affinity, 1, superEditorFinder);
}