FFText constructor
FFText({
- String? legacyText,
- double? legacyFontSize,
- String? fontFamily,
- @Deprecated('This field is deprecated.') Int64? legacyColorVal,
- FFFontWeight? legacyFontWeight,
- FFTextAlign? legacyTextAlign,
- FFColor? legacyColor,
- FFText_ThemeStyle? themeStyle,
- bool? legacyItalic,
- bool? autoSize,
- int? legacyLegacyOverriddenTextMaxChars,
- FFText_LegacyOverflowReplacement? legacyOverflowReplacement,
- bool? isCustomFont,
- double? legacyHeight,
- FFIdentifier? translationIdentifier,
- bool? underline,
- bool? strikethrough,
- int? legacyMaxLines,
- double? legacyLetterSpacing,
- FFTextGradient? gradient,
- bool? selectable,
- FFValue? variableColor,
- double? legacyMinFontSize,
- FFTextStyleAnimation? animation,
- 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,
- String? figmaFontName,
- String? customStyleName,
- 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;
}