TextStyle constructor
TextStyle({
- String? type,
- num? fontSize,
- TextDecoration? textDecoration,
- FontName? fontName,
- LetterSpacing? letterSpacing,
- Object? lineHeight,
- LeadingTrim? leadingTrim,
- num? paragraphIndent,
- num? paragraphSpacing,
- num? listSpacing,
- bool? hangingPunctuation,
- bool? hangingList,
- TextCase? textCase,
- dynamic boundVariables,
- void setBoundVariable(])?,
- String? id,
- List<
StyleConsumers> ? consumers, - String? name,
- Future<
List< getStyleConsumersAsync()?,StyleConsumers> > - void remove()?,
Implementation
factory TextStyle({
_i2.String? type,
_i2.num? fontSize,
_i3.TextDecoration? textDecoration,
_i3.FontName? fontName,
_i3.LetterSpacing? letterSpacing,
_i2.Object? lineHeight,
_i3.LeadingTrim? leadingTrim,
_i2.num? paragraphIndent,
_i2.num? paragraphSpacing,
_i2.num? listSpacing,
_i2.bool? hangingPunctuation,
_i2.bool? hangingList,
_i3.TextCase? textCase,
_i2.dynamic boundVariables,
void Function(
_i3.VariableBindableTextField, [
_i3.Variable?,
])? setBoundVariable,
_i2.String? id,
_i2.List<_i3.StyleConsumers>? consumers,
_i2.String? name,
_i2.Future<_i2.List<_i3.StyleConsumers>> Function()? getStyleConsumersAsync,
void Function()? remove,
}) =>
TextStyle._(
type: type,
fontSize: fontSize,
textDecoration: textDecoration?.name ?? _i7.undefined,
fontName: fontName ?? _i7.undefined,
letterSpacing: letterSpacing ?? _i7.undefined,
lineHeight: lineHeight ?? _i7.undefined,
leadingTrim: leadingTrim?.name ?? _i7.undefined,
paragraphIndent: paragraphIndent,
paragraphSpacing: paragraphSpacing,
listSpacing: listSpacing,
hangingPunctuation: hangingPunctuation,
hangingList: hangingList,
textCase: textCase?.name ?? _i7.undefined,
boundVariables: boundVariables,
setBoundVariable: setBoundVariable == null
? null
: _i5.allowInterop(setBoundVariable),
id: id,
consumers: consumers,
name: name,
getStyleConsumersAsync: getStyleConsumersAsync == null
? null
: _i5.allowInterop(getStyleConsumersAsync),
remove: remove == null ? null : _i5.allowInterop(remove),
);