copyWith method

EmergentTextStyle copyWith({
  1. bool? inherit,
  2. String? fontFamily,
  3. List<String>? fontFamilyFallback,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. double? letterSpacing,
  8. double? wordSpacing,
  9. TextBaseline? textBaseline,
  10. double? height,
  11. Locale? locale,
  12. List<FontFeature>? fontFeatures,
  13. 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,
  );
}