copyWith method

BlockQuoteStyle copyWith({
  1. double? barWidth,
  2. Color? barColor,
  3. Radius? barRadius,
  4. Color? backgroundColor,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? margin,
  7. 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,
  );
}