formatRunsInRange static method

TextStory formatRunsInRange({
  1. required TextStory story,
  2. required int start,
  3. required int end,
  4. required TextRun format(
    1. TextRun
    ),
})

Changes inline presentation without changing selected text or offsets.

Implementation

static TextStory formatRunsInRange({
  required TextStory story,
  required int start,
  required int end,
  required TextRun Function(TextRun) format,
}) => _RunTransforms.formatRunsInRange(
  story: story,
  start: start,
  end: end,
  format: format,
);