disable abstract method

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

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

void disable({
  bool showCursor = false,
  UnfocusDisposition disposition = UnfocusDisposition.scope,
});