FFText constructor

FFText({
  1. String? legacyText,
  2. double? legacyFontSize,
  3. String? fontFamily,
  4. @Deprecated('This field is deprecated.') Int64? legacyColorVal,
  5. FFFontWeight? legacyFontWeight,
  6. FFTextAlign? legacyTextAlign,
  7. FFColor? legacyColor,
  8. FFText_ThemeStyle? themeStyle,
  9. bool? legacyItalic,
  10. bool? autoSize,
  11. int? legacyLegacyOverriddenTextMaxChars,
  12. FFText_LegacyOverflowReplacement? legacyOverflowReplacement,
  13. bool? isCustomFont,
  14. double? legacyHeight,
  15. FFIdentifier? translationIdentifier,
  16. bool? underline,
  17. bool? strikethrough,
  18. int? legacyMaxLines,
  19. double? legacyLetterSpacing,
  20. FFTextGradient? gradient,
  21. bool? selectable,
  22. FFValue? variableColor,
  23. double? legacyMinFontSize,
  24. FFTextStyleAnimation? animation,
  25. Iterable<FFTextShadow>? shadows,
  26. FFStringValue? textValue,
  27. FFDoubleValue? fontSizeValue,
  28. FFColorValue? colorValue,
  29. FFBooleanValue? italicValue,
  30. FFDoubleValue? minFontSizeValue,
  31. FFDoubleValue? heightValue,
  32. FFIntegerValue? maxLinesValue,
  33. FFDoubleValue? letterSpacingValue,
  34. FFIntegerValue? legacyOverriddenTextMaxCharsValue,
  35. FFTextStyleValue? textStyle,
  36. FFFontWeightValue? fontWeightValue,
  37. FFTextAlignValue? textAlignValue,
  38. String? figmaFontName,
  39. String? customStyleName,
  40. FFText_OverflowReplacement? overflowReplacement,
})

Implementation

factory FFText({
  $core.String? legacyText,
  $core.double? legacyFontSize,
  $core.String? fontFamily,
  @$core.Deprecated('This field is deprecated.')
  $fixnum.Int64? legacyColorVal,
  FFFontWeight? legacyFontWeight,
  FFTextAlign? legacyTextAlign,
  FFColor? legacyColor,
  FFText_ThemeStyle? themeStyle,
  $core.bool? legacyItalic,
  $core.bool? autoSize,
  $core.int? legacyLegacyOverriddenTextMaxChars,
  FFText_LegacyOverflowReplacement? legacyOverflowReplacement,
  $core.bool? isCustomFont,
  $core.double? legacyHeight,
  FFIdentifier? translationIdentifier,
  $core.bool? underline,
  $core.bool? strikethrough,
  $core.int? legacyMaxLines,
  $core.double? legacyLetterSpacing,
  FFTextGradient? gradient,
  $core.bool? selectable,
  FFValue? variableColor,
  $core.double? legacyMinFontSize,
  FFTextStyleAnimation? animation,
  $core.Iterable<FFTextShadow>? shadows,
  FFStringValue? textValue,
  FFDoubleValue? fontSizeValue,
  FFColorValue? colorValue,
  FFBooleanValue? italicValue,
  FFDoubleValue? minFontSizeValue,
  FFDoubleValue? heightValue,
  FFIntegerValue? maxLinesValue,
  FFDoubleValue? letterSpacingValue,
  FFIntegerValue? legacyOverriddenTextMaxCharsValue,
  FFTextStyleValue? textStyle,
  FFFontWeightValue? fontWeightValue,
  FFTextAlignValue? textAlignValue,
  $core.String? figmaFontName,
  $core.String? customStyleName,
  FFText_OverflowReplacement? overflowReplacement,
}) {
  final result = create();
  if (legacyText != null) result.legacyText = legacyText;
  if (legacyFontSize != null) result.legacyFontSize = legacyFontSize;
  if (fontFamily != null) result.fontFamily = fontFamily;
  if (legacyColorVal != null) result.legacyColorVal = legacyColorVal;
  if (legacyFontWeight != null) result.legacyFontWeight = legacyFontWeight;
  if (legacyTextAlign != null) result.legacyTextAlign = legacyTextAlign;
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (themeStyle != null) result.themeStyle = themeStyle;
  if (legacyItalic != null) result.legacyItalic = legacyItalic;
  if (autoSize != null) result.autoSize = autoSize;
  if (legacyLegacyOverriddenTextMaxChars != null)
    result.legacyLegacyOverriddenTextMaxChars =
        legacyLegacyOverriddenTextMaxChars;
  if (legacyOverflowReplacement != null)
    result.legacyOverflowReplacement = legacyOverflowReplacement;
  if (isCustomFont != null) result.isCustomFont = isCustomFont;
  if (legacyHeight != null) result.legacyHeight = legacyHeight;
  if (translationIdentifier != null)
    result.translationIdentifier = translationIdentifier;
  if (underline != null) result.underline = underline;
  if (strikethrough != null) result.strikethrough = strikethrough;
  if (legacyMaxLines != null) result.legacyMaxLines = legacyMaxLines;
  if (legacyLetterSpacing != null)
    result.legacyLetterSpacing = legacyLetterSpacing;
  if (gradient != null) result.gradient = gradient;
  if (selectable != null) result.selectable = selectable;
  if (variableColor != null) result.variableColor = variableColor;
  if (legacyMinFontSize != null) result.legacyMinFontSize = legacyMinFontSize;
  if (animation != null) result.animation = animation;
  if (shadows != null) result.shadows.addAll(shadows);
  if (textValue != null) result.textValue = textValue;
  if (fontSizeValue != null) result.fontSizeValue = fontSizeValue;
  if (colorValue != null) result.colorValue = colorValue;
  if (italicValue != null) result.italicValue = italicValue;
  if (minFontSizeValue != null) result.minFontSizeValue = minFontSizeValue;
  if (heightValue != null) result.heightValue = heightValue;
  if (maxLinesValue != null) result.maxLinesValue = maxLinesValue;
  if (letterSpacingValue != null)
    result.letterSpacingValue = letterSpacingValue;
  if (legacyOverriddenTextMaxCharsValue != null)
    result.legacyOverriddenTextMaxCharsValue =
        legacyOverriddenTextMaxCharsValue;
  if (textStyle != null) result.textStyle = textStyle;
  if (fontWeightValue != null) result.fontWeightValue = fontWeightValue;
  if (textAlignValue != null) result.textAlignValue = textAlignValue;
  if (figmaFontName != null) result.figmaFontName = figmaFontName;
  if (customStyleName != null) result.customStyleName = customStyleName;
  if (overflowReplacement != null)
    result.overflowReplacement = overflowReplacement;
  return result;
}