lookUpEnabled property

  1. @override
bool lookUpEnabled
override

Whether look up is enabled.

Implementation

@override
bool get lookUpEnabled {
  if (defaultTargetPlatform != TargetPlatform.iOS) {
    return false;
  }
  return !widget.obscureText
      && !textEditingValue.selection.isCollapsed
      && textEditingValue.selection.textInside(textEditingValue.text).trim() != '';
}