m3eSearchSelectionControls function

TextSelectionControls m3eSearchSelectionControls(
  1. TargetPlatform platform
)

Platform text selection handles for the search input.

Implementation

TextSelectionControls m3eSearchSelectionControls(TargetPlatform platform) {
  return switch (platform) {
    TargetPlatform.iOS => cupertinoTextSelectionHandleControls,
    TargetPlatform.macOS => cupertinoDesktopTextSelectionHandleControls,
    TargetPlatform.android ||
    TargetPlatform.fuchsia => materialTextSelectionHandleControls,
    TargetPlatform.linux ||
    TargetPlatform.windows => desktopTextSelectionHandleControls,
  };
}