findAllMobileDragHandles static method
Returns true
if any type of mobile drag handles are visible, or false
if not.
On iOS, drag handles include the caret, as well as the upstream and downstream handles.
On Android, drag handles include the caret handle, as well as the upstream and downstream drag handles. The caret drag handle on Android disappears after a brief period of inactivity, and reappears upon another user interaction.
Implementation
static Finder findAllMobileDragHandles([Finder? superEditorFinder]) {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return find.byWidgetPredicate(
(widget) =>
widget.key == DocumentKeys.androidCaretHandle ||
widget.key == DocumentKeys.upstreamHandle ||
widget.key == DocumentKeys.downstreamHandle,
);
case TargetPlatform.iOS:
return find.byWidgetPredicate(
(widget) =>
widget.key == DocumentKeys.caret ||
widget.key == DocumentKeys.upstreamHandle ||
widget.key == DocumentKeys.downstreamHandle,
);
case TargetPlatform.macOS:
case TargetPlatform.windows:
case TargetPlatform.linux:
case TargetPlatform.fuchsia:
return FindsNothing();
}
}