TRText constructor

const TRText(
  1. String data, {
  2. TRTextVariant variant = TRTextVariant.body,
  3. TRTextColor? color,
  4. TRTextAlign? align,
  5. TRTextWeight? weight,
  6. bool truncate = false,
  7. int? maxLines,
  8. TextOverflow? overflow,
  9. bool? softWrap,
  10. Key? key,
})

Implementation

const TRText(
  this.data, {
  TRTextVariant this.variant = TRTextVariant.body,
  this.color,
  this.align,
  this.weight,
  this.truncate = false,
  this.maxLines,
  this.overflow,
  this.softWrap,
  super.key,
});