Text constructor

const Text(
  1. String data, {
  2. Key? key,
  3. Style style = Style.empty,
  4. bool wrap = true,
  5. TextAlign textAlign = TextAlign.left,
  6. int? maxLines,
})

Creates a Text widget to render styled text.

Implementation

const Text(
  this.data, {
  super.key,
  this.style = Style.empty,
  this.wrap = true,
  this.textAlign = TextAlign.left,
  this.maxLines,
});