copyWith method
EmergentTextStyle
copyWith({
- bool? inherit,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? letterSpacing,
- double? wordSpacing,
- TextBaseline? textBaseline,
- double? height,
- Locale? locale,
- List<
FontFeature> ? fontFeatures, - String? debugLabel,
Implementation
EmergentTextStyle copyWith({
bool? inherit,
String? fontFamily,
List<String>? fontFamilyFallback,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? letterSpacing,
double? wordSpacing,
TextBaseline? textBaseline,
double? height,
Locale? locale,
List<ui.FontFeature>? fontFeatures,
String? debugLabel,
//Color color,
//Color backgroundColor,
//Paint foreground,
//Paint background,
//TextDecoration decoration,
//Color decorationColor,
//TextDecorationStyle decorationStyle,
//double decorationThickness,
}) {
return EmergentTextStyle(
inherit: inherit ?? this.inherit,
fontFamily: fontFamily ?? this.fontFamily,
fontFamilyFallback: fontFamilyFallback ?? this.fontFamilyFallback,
fontSize: fontSize ?? this.fontSize,
fontWeight: fontWeight ?? this.fontWeight,
fontStyle: fontStyle ?? this.fontStyle,
letterSpacing: letterSpacing ?? this.letterSpacing,
wordSpacing: wordSpacing ?? this.wordSpacing,
textBaseline: textBaseline ?? this.textBaseline,
height: height ?? this.height,
locale: locale ?? this.locale,
fontFeatures: fontFeatures ?? this.fontFeatures,
debugLabel: debugLabel ?? this.debugLabel,
//color: this.foreground == null && foreground == null ? color ?? this.color : null,
//backgroundColor: this.background == null && background == null ? backgroundColor ?? this.backgroundColor : null,
//foreground: foreground ?? this.foreground,
//background: background ?? this.background,
//shadows: shadows ?? this.shadows,
//decoration: decoration ?? this.decoration,
//decorationColor: decorationColor ?? this.decorationColor,
//decorationStyle: decorationStyle ?? this.decorationStyle,
//decorationThickness: decorationThickness ?? this.decorationThickness,
);
}