TextComponent constructor

const TextComponent({
  1. Key? key,
  2. required String? text,
  3. Color color = Colors.black,
  4. double size = 12,
  5. bool muted = false,
  6. TextAlign textAlign = TextAlign.left,
  7. FontWeight fontWeight = FontWeight.normal,
  8. double marginTop = 0,
  9. double marginBottom = 0,
  10. double marginLeft = 0,
  11. bool isActionBar = false,
  12. double marginRight = 0,
})

Implementation

const TextComponent(
    {Key? key,
      required this.text,
      this.color = Colors.black,
      this.size = 12,
      this.muted = false,
      this.textAlign = TextAlign.left,
      this.fontWeight = FontWeight.normal,
      this.marginTop = 0,
      this.marginBottom = 0,
      this.marginLeft = 0,
      this.isActionBar = false,
      this.marginRight = 0})
    : super(key: key);