copyWith method

BarChartTooltipStyle copyWith({
  1. Color? color,
  2. TextStyle? titleStyle,
  3. TextStyle? subtitleStyle,
  4. EdgeInsets? padding,
  5. double? spacing,
  6. double? radius,
  7. double? triangleWidth,
  8. double? triangleHeight,
  9. Color? shadowColor,
  10. double? shadowElevation,
  11. double? bottomMargin,
})

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,
    );