pasteEnabled property

  1. @override
bool pasteEnabled
override

Whether paste is enabled.

Implementation

@override
bool get pasteEnabled {
  if (widget.selectionControls is! TextSelectionHandleControls) {
    return widget.toolbarOptions.paste && !widget.readOnly;
  }
  return !widget.readOnly
      && (clipboardStatus.value == ClipboardStatus.pasteable);
}