hasFocus method
- @Deprecated('Please use onFocusChanged method in the QuillHtmlEditor widget for focus')
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;
}