TextPastePolicy.immediate constructor

const TextPastePolicy.immediate()

Applies each received paste segment in one synchronous edit.

Use for bounded forms whose input may be temporarily unmounted while an external controller survives. There is no scheduled tail to discard on unmount. The application must bound input size; large synchronous edits can block input and rendering. Future terminal segments are not received or preserved by this policy after the field goes away.

Implementation

const TextPastePolicy.immediate()
  : largePasteThreshold = 8192,
    chunkSize = 2048,
    _immediate = true;