disable method

  1. @override
void disable({
  1. bool showCursor = false,
  2. UnfocusDisposition disposition = UnfocusDisposition.previouslyFocusedChild,
})
override

Disables shortcuts service.

In some cases, if your custom component needs to monitor keyboard events separately, you can disable the keyboard service of flowy_editor. But you need to call the enable function to restore after exiting your custom component, otherwise the keyboard service will fails.

Implementation

@override
void disable({
  bool showCursor = false,
  UnfocusDisposition disposition = UnfocusDisposition.previouslyFocusedChild,
}) =>
    focusNode.unfocus(disposition: disposition);