hasFocus method

  1. @Deprecated('Please use onFocusChanged method in the QuillHtmlEditor widget for focus')
Future<int> hasFocus()

hasFocuschecks if the editor has focus, returns the selection string length

Implementation

@Deprecated(
    'Please use onFocusChanged method in the QuillHtmlEditor widget for focus')

/// [hasFocus]checks if the editor has focus, returns the selection string length
Future<int> hasFocus() async {
  return (await _editorKey?.currentState?._getSelectionCount()) ?? 0;
}