debounceDuration property

  1. @experimental
Duration? debounceDuration
getter/setter pair

The debouncing duration after every text input action.

This is experimental for now. Use it at your own risk.

This is not perfect but somewhat effective in long text. Parsing is scheduled to be performed after the specified duration, but it is rescheduled if any event happens, such as a text change and a cursor move. It reduces the frequency of text parsing and thus making text updates a little more performant.

The default value is null, meaning debouncing is disabled. The initial parsing is not debounced even if a duration above zero is given.

A new value can be assigned to change the duration span or turn debouncing on/off.

Implementation

@experimental
Duration? debounceDuration;