TextComponent constructor

const TextComponent(
  1. String data, {
  2. Key? key,
  3. Unit? fontSize,
  4. TextAlign? align,
  5. EdgeInsets? margin,
  6. Unit? maxWidth,
  7. FontWeight? fontWeight,
  8. Color? color,
})

Implementation

const TextComponent(this.data,
    {super.key,
    this.fontSize,
    this.align,
    this.margin,
    this.maxWidth,
    this.fontWeight,
    this.color});