TextComponent constructor

const TextComponent(
  1. String text, {
  2. TextComponentStyle? style,
})

Creates a TextComponent with the given text and optional style.

Implementation

const TextComponent(this.text, {this.style});