copyWith method

InlineCodeStyle copyWith({
  1. String? fontFamily,
  2. String? fontFamilyPackage,
  3. List<String>? fontFamilyFallback,
  4. double? fontSizeFactor,
  5. FontWeight? fontWeight,
  6. Color? color,
  7. Color? backgroundColor,
  8. Color? borderColor,
  9. double? borderWidth,
  10. Radius? borderRadius,
  11. EdgeInsets? padding,
  12. BoxHeightStyle? boxHeightStyle,
})

A copy of this style with the given fields replaced.

Implementation

InlineCodeStyle copyWith({
  String? fontFamily,
  String? fontFamilyPackage,
  List<String>? fontFamilyFallback,
  double? fontSizeFactor,
  FontWeight? fontWeight,
  Color? color,
  Color? backgroundColor,
  Color? borderColor,
  double? borderWidth,
  Radius? borderRadius,
  EdgeInsets? padding,
  ui.BoxHeightStyle? boxHeightStyle,
}) {
  return InlineCodeStyle(
    fontFamily: fontFamily ?? this.fontFamily,
    fontFamilyPackage: fontFamilyPackage ?? this.fontFamilyPackage,
    fontFamilyFallback: fontFamilyFallback ?? this.fontFamilyFallback,
    fontSizeFactor: fontSizeFactor ?? this.fontSizeFactor,
    fontWeight: fontWeight ?? this.fontWeight,
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    padding: padding ?? this.padding,
    boxHeightStyle: boxHeightStyle ?? this.boxHeightStyle,
  );
}