JTextStyle constructor

JTextStyle(
  1. String tag, {
  2. bool caseSensitive = false,
  3. GestureRecognizer recognizer(
    1. String string
    )?,
  4. bool inherit = true,
  5. Color? color,
  6. Color? backgroundColor,
  7. double? fontSize,
  8. FontWeight? fontWeight,
  9. FontStyle? fontStyle,
  10. double? letterSpacing,
  11. double? wordSpacing,
  12. TextBaseline? textBaseline,
  13. double? height,
  14. TextLeadingDistribution? leadingDistribution,
  15. Locale? locale,
  16. Paint? foreground,
  17. Paint? background,
  18. List<Shadow>? shadows,
  19. List<FontFeature>? fontFeatures,
  20. List<FontVariation>? fontVariations,
  21. TextDecoration? decoration,
  22. Color? decorationColor,
  23. TextDecorationStyle? decorationStyle,
  24. double? decorationThickness,
  25. String? debugLabel,
  26. String? fontFamily,
  27. List<String>? fontFamilyFallback,
  28. String? package,
  29. TextOverflow? overflow,
})

Implementation

JTextStyle(
  String tag, {
  this.caseSensitive = false,
  this.recognizer,
  bool inherit = true,
  Color? color,
  Color? backgroundColor,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? letterSpacing,
  double? wordSpacing,
  TextBaseline? textBaseline,
  double? height,
  TextLeadingDistribution? leadingDistribution,
  Locale? locale,
  Paint? foreground,
  Paint? background,
  List<Shadow>? shadows,
  List<FontFeature>? fontFeatures,
  List<FontVariation>? fontVariations,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
  String? debugLabel,
  String? fontFamily,
  List<String>? fontFamilyFallback,
  String? package,
  TextOverflow? overflow,
})  : tag = tag.replaceAll(RegExp(r'<|>|\|'), ''),
      super(
        inherit: inherit,
        color: color,
        backgroundColor: backgroundColor,
        fontSize: fontSize,
        fontWeight: fontWeight,
        fontStyle: fontStyle,
        letterSpacing: letterSpacing,
        wordSpacing: wordSpacing,
        textBaseline: textBaseline,
        height: height,
        leadingDistribution: leadingDistribution,
        locale: locale,
        foreground: foreground,
        background: background,
        shadows: shadows,
        fontFeatures: fontFeatures,
        fontVariations: fontVariations,
        decoration: decoration,
        decorationColor: decorationColor,
        decorationStyle: decorationStyle,
        decorationThickness: decorationThickness,
        debugLabel: debugLabel,
        fontFamily: fontFamily,
        fontFamilyFallback: fontFamilyFallback,
        package: package,
        overflow: overflow,
      );