copyWith method
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,
- 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,
);
}