Component.text constructor

const Component.text(
  1. String text, {
  2. Key? key,
})

Creates a component which renders a html text node.

Implementation

const factory Component.text(String text, {Key? key}) = Text._;