text function

  1. @Deprecated('Use Component.text() instead.')
Component text(
  1. String text, {
  2. Key? key,
})

Renders a text node.

Migrate to use Component.text directly instead.

Implementation

@Deprecated('Use Component.text() instead.')
Component text(String text, {Key? key}) {
  return Component.text(text, key: key);
}