TextComponent constructor
const
TextComponent(
- String text, {
- TextComponentStyle? style,
Creates a TextComponent with the given text
and optional style
.
Implementation
const TextComponent(this.text, {this.style});