formatRuns static method

TextStory formatRuns({
  1. required TextStory story,
  2. required TextRun format(
    1. TextRun
    ),
})

Transforms every paragraph run without changing text or canonical identity. Empty paragraphs receive one empty run when the transformation adds style.

Implementation

static TextStory formatRuns({
  required TextStory story,
  required TextRun Function(TextRun) format,
}) => _RunTransforms.all(story, format);