Text constructor

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

Creates a Text widget to render styled text.

Implementation

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