copyWith method
BlockQuoteStyle
copyWith({
- double? barWidth,
- Color? barColor,
- Radius? barRadius,
- Color? backgroundColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- TextStyle? textStyle,
A copy with the given fields replaced.
Implementation
BlockQuoteStyle copyWith({
double? barWidth,
Color? barColor,
Radius? barRadius,
Color? backgroundColor,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
TextStyle? textStyle,
}) {
return BlockQuoteStyle(
barWidth: barWidth ?? this.barWidth,
barColor: barColor ?? this.barColor,
barRadius: barRadius ?? this.barRadius,
backgroundColor: backgroundColor ?? this.backgroundColor,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
textStyle: textStyle ?? this.textStyle,
);
}