searchWebEnabled property

  1. @override
bool get searchWebEnabled
override

Whether search web is enabled.

Implementation

@override
bool get searchWebEnabled {
  if (defaultTargetPlatform != TargetPlatform.iOS) {
    return false;
  }

  return !widget.obscureText
      && !textEditingValue.selection.isCollapsed
      && textEditingValue.selection.textInside(textEditingValue.text).trim() != '';
}