restoreInputShortcut method

TextStory restoreInputShortcut(
  1. TextStory story,
  2. int blockIndex,
  3. String text
)

Reverses applyInputShortcut on the paragraph at blockIndex, restoring the typed text. Returns story when nothing is restored.

Implementation

TextStory restoreInputShortcut(
  TextStory story,
  int blockIndex,
  String text,
) => story;