copyEnabled property

  1. @override
bool get copyEnabled
override

Whether copy is enabled.

Implementation

@override
bool get copyEnabled {
  if (widget.selectionControls is! TextSelectionHandleControls) {
    return widget.toolbarOptions.copy && !widget.obscureText;
  }
  return !widget.obscureText
      && !textEditingValue.selection.isCollapsed;
}