copyWith method
Creates a copy of the current object with new values specified in arguments.
Implementation
BarChartTooltipStyle copyWith({
Color? color,
TextStyle? titleStyle,
TextStyle? subtitleStyle,
EdgeInsets? padding,
double? spacing,
double? radius,
double? triangleWidth,
double? triangleHeight,
Color? shadowColor,
double? shadowElevation,
double? bottomMargin,
}) =>
BarChartTooltipStyle(
color: color ?? this.color,
titleStyle: titleStyle ?? this.titleStyle,
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
radius: radius ?? this.radius,
triangleWidth: triangleWidth ?? this.triangleWidth,
triangleHeight: triangleHeight ?? this.triangleHeight,
shadowColor: shadowColor ?? this.shadowColor,
shadowElevation: shadowElevation ?? this.shadowElevation,
bottomMargin: bottomMargin ?? this.bottomMargin,
);