TextWidget constructor

const TextWidget({
  1. Key? key,
  2. required List<Span> spans,
  3. required double fontSize,
  4. required String font,
  5. required FontWeight weight,
  6. required Color foreground,
  7. required FontWeight boldWeight,
  8. required Color boldForeground,
  9. required Color linkForeground,
  10. required Color codeBackground,
  11. required double codePadding,
  12. required double codeBorderRadius,
  13. required Color codeForeground,
  14. required String codeFont,
  15. required FontWeight codeWeight,
})

Implementation

const TextWidget({
  Key? key,
  required this.spans,
  required this.fontSize,
  required this.font,
  required this.weight,
  required this.foreground,
  required this.boldWeight,
  required this.boldForeground,
  required this.linkForeground,
  required this.codeBackground,
  required this.codePadding,
  required this.codeBorderRadius,
  required this.codeForeground,
  required this.codeFont,
  required this.codeWeight,
}) : super(key: key);