TextComponent constructor

TextComponent({
  1. Key? key,
  2. required String value,
  3. bool? inherit,
  4. Color? color,
  5. Color? backgroundColor,
  6. double? fontSize,
  7. FontWeight? fontWeight,
  8. FontStyle? fontStyle,
  9. double? letterSpacing,
  10. double? wordSpacing,
  11. TextBaseline? textBaseline,
  12. double? height,
  13. TextLeadingDistribution? leadingDistribution,
  14. Locale? locale,
  15. Paint? foreground,
  16. Paint? background,
  17. List<Shadow>? shadows,
  18. TextDecoration? decoration,
  19. Color? decorationColor,
  20. TextDecorationStyle? decorationStyle,
  21. double? decorationThickness,
  22. String? debugLabel,
  23. String? fontFamily,
  24. List<String>? fontFamilyFallback,
  25. String? package,
  26. TextOverflow? overflow,
  27. dynamic textAlign,
})

Implementation

TextComponent(
    {Key? key,
    required this.value,
    this.inherit,
    this.color,
    this.backgroundColor,
    this.fontSize,
    this.fontWeight,
    this.fontStyle,
    this.letterSpacing,
    this.wordSpacing,
    this.textBaseline,
    this.height,
    this.leadingDistribution,
    this.locale,
    this.foreground,
    this.background,
    this.shadows,
    this.decoration,
    this.decorationColor,
    this.decorationStyle,
    this.decorationThickness,
    this.debugLabel,
    this.fontFamily,
    this.fontFamilyFallback,
    this.package,
    this.overflow,
    this.textAlign})
    : super(key: key);