StyledTextSegment constructor
StyledTextSegment({
- String? characters,
- num? start,
- num? end,
- num? fontSize,
- FontName? fontName,
- num? fontWeight,
- TextDecoration? textDecoration,
- TextDecorationStyle? textDecorationStyle,
- Object? textDecorationOffset,
- Object? textDecorationThickness,
- Object? textDecorationColor,
- bool? textDecorationSkipInk,
- TextCase? textCase,
- Object? lineHeight,
- LetterSpacing? letterSpacing,
- List<
Object> ? fills, - String? textStyleId,
- String? fillStyleId,
- TextListOptions? listOptions,
- num? listSpacing,
- num? indentation,
- num? paragraphIndent,
- num? paragraphSpacing,
- HyperlinkTarget? hyperlink,
- dynamic openTypeFeatures,
- dynamic boundVariables,
- 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,
);