Txt constructor

const Txt(
  1. String text, {
  2. Key? key,
  3. Color? color,
  4. FontWeight weight = FontWeight.normal,
  5. double size = 16,
  6. TextAlign textAlign = TextAlign.center,
  7. List<Shadow>? shadows,
})

Implementation

const Txt(this.text,
    {Key? key,
    this.color,
    this.weight = FontWeight.normal,
    this.size = 16,
    this.textAlign = TextAlign.center,
    this.shadows})
    : super(key: key);