TextRun constructor

const TextRun(
  1. String text, {
  2. Style style = Style.empty,
})

Creates a TextRun with an explicit text value and optional styling.

Implementation

const TextRun(this.text, {this.style = Style.empty});