Heading constructor

const Heading({
  1. Key? key,
  2. required String text,
  3. String? color,
  4. String? fontFamily,
  5. String? fontSize,
  6. String? fontStyle,
  7. String? fontWeight,
  8. String? letterSpacing,
  9. String? lineHeight,
  10. String? textAlign,
  11. String? textDecoration,
  12. String? textTransform,
  13. String? size = 'lg',
})

Implementation

const Heading({
  super.key,
  required super.text,
  super.color,
  super.fontFamily,
  super.fontSize,
  super.fontStyle,
  super.fontWeight,
  super.letterSpacing,
  super.lineHeight,
  super.textAlign,
  super.textDecoration,
  super.textTransform,
  this.size = 'lg',
});