StyledTextSegment constructor

StyledTextSegment({
  1. String? characters,
  2. num? start,
  3. num? end,
  4. num? fontSize,
  5. FontName? fontName,
  6. num? fontWeight,
  7. TextDecoration? textDecoration,
  8. TextDecorationStyle? textDecorationStyle,
  9. Object? textDecorationOffset,
  10. Object? textDecorationThickness,
  11. Object? textDecorationColor,
  12. bool? textDecorationSkipInk,
  13. TextCase? textCase,
  14. Object? lineHeight,
  15. LetterSpacing? letterSpacing,
  16. List<Object>? fills,
  17. String? textStyleId,
  18. String? fillStyleId,
  19. TextListOptions? listOptions,
  20. num? listSpacing,
  21. num? indentation,
  22. num? paragraphIndent,
  23. num? paragraphSpacing,
  24. HyperlinkTarget? hyperlink,
  25. dynamic openTypeFeatures,
  26. dynamic boundVariables,
  27. List<TextStyleOverrideType>? textStyleOverrides,
})

Implementation

factory StyledTextSegment({
  _i2.String? characters,
  _i2.num? start,
  _i2.num? end,
  _i2.num? fontSize,
  _i3.FontName? fontName,
  _i2.num? fontWeight,
  _i3.TextDecoration? textDecoration,
  _i3.TextDecorationStyle? textDecorationStyle,
  _i2.Object? textDecorationOffset,
  _i2.Object? textDecorationThickness,
  _i2.Object? textDecorationColor,
  _i2.bool? textDecorationSkipInk,
  _i3.TextCase? textCase,
  _i2.Object? lineHeight,
  _i3.LetterSpacing? letterSpacing,
  _i2.List<_i2.Object>? fills,
  _i2.String? textStyleId,
  _i2.String? fillStyleId,
  _i3.TextListOptions? listOptions,
  _i2.num? listSpacing,
  _i2.num? indentation,
  _i2.num? paragraphIndent,
  _i2.num? paragraphSpacing,
  _i3.HyperlinkTarget? hyperlink,
  _i2.dynamic openTypeFeatures,
  _i2.dynamic boundVariables,
  _i2.List<_i3.TextStyleOverrideType>? textStyleOverrides,
}) =>
    StyledTextSegment._(
      characters: characters,
      start: start,
      end: end,
      fontSize: fontSize,
      fontName: fontName ?? _i7.undefined,
      fontWeight: fontWeight,
      textDecoration: textDecoration?.name ?? _i7.undefined,
      textDecorationStyle:
          textDecorationStyle?.name ?? _i7.undefined ?? _i7.undefined,
      textDecorationOffset:
          textDecorationOffset ?? _i7.undefined ?? _i7.undefined,
      textDecorationThickness:
          textDecorationThickness ?? _i7.undefined ?? _i7.undefined,
      textDecorationColor:
          textDecorationColor ?? _i7.undefined ?? _i7.undefined,
      textDecorationSkipInk: textDecorationSkipInk ?? _i7.undefined,
      textCase: textCase?.name ?? _i7.undefined,
      lineHeight: lineHeight ?? _i7.undefined,
      letterSpacing: letterSpacing ?? _i7.undefined,
      fills: fills,
      textStyleId: textStyleId,
      fillStyleId: fillStyleId,
      listOptions: listOptions ?? _i7.undefined,
      listSpacing: listSpacing,
      indentation: indentation,
      paragraphIndent: paragraphIndent,
      paragraphSpacing: paragraphSpacing,
      hyperlink: hyperlink ?? _i7.undefined ?? _i7.undefined,
      openTypeFeatures: openTypeFeatures,
      boundVariables: boundVariables,
      textStyleOverrides: textStyleOverrides,
    );