TextStyleDto.only constructor
TextStyleDto.only({
- ColorDto? color,
- ColorDto? backgroundColor,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? letterSpacing,
- String? debugLabel,
- double? wordSpacing,
- TextBaseline? textBaseline,
- List<
ShadowDto> ? shadows, - List<
FontFeature> ? fontFeatures, - TextDecoration? decoration,
- ColorDto? decorationColor,
- TextDecorationStyle? decorationStyle,
- Locale? locale,
- double? height,
- Paint? foreground,
- Paint? background,
- double? decorationThickness,
- String? fontFamily,
- List<
String> ? fontFamilyFallback,
Implementation
factory TextStyleDto.only({
ColorDto? color,
ColorDto? backgroundColor,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? letterSpacing,
String? debugLabel,
double? wordSpacing,
TextBaseline? textBaseline,
List<ShadowDto>? shadows,
List<FontFeature>? fontFeatures,
TextDecoration? decoration,
ColorDto? decorationColor,
TextDecorationStyle? decorationStyle,
Locale? locale,
double? height,
Paint? foreground,
Paint? background,
double? decorationThickness,
String? fontFamily,
List<String>? fontFamilyFallback,
}) {
return TextStyleDto(TextStyleData(
background: background,
backgroundColor: backgroundColor,
color: color,
debugLabel: debugLabel,
decoration: decoration,
decorationColor: decorationColor,
decorationStyle: decorationStyle,
decorationThickness: decorationThickness,
fontFamily: fontFamily,
fontFamilyFallback: fontFamilyFallback,
fontFeatures: fontFeatures,
fontSize: fontSize,
fontStyle: fontStyle,
fontWeight: fontWeight,
foreground: foreground,
height: height,
letterSpacing: letterSpacing,
locale: locale,
shadows: shadows,
textBaseline: textBaseline,
wordSpacing: wordSpacing,
));
}