copyWith method

GaugeChartSectionStyle copyWith({
  1. List<Color>? colors,
  2. Color? selectedColor,
  3. Color? selectedBorderColor,
  4. double? selectedBorderStroke,
})

Creates a copy of the current object with new values specified in arguments.

Implementation

GaugeChartSectionStyle copyWith({
  List<Color>? colors,
  Color? selectedColor,
  Color? selectedBorderColor,
  double? selectedBorderStroke,
}) =>
    GaugeChartSectionStyle(
      colors: colors ?? this.colors,
      selectedColor: selectedColor ?? this.selectedColor,
      selectedBorderColor: selectedBorderColor ?? this.selectedBorderColor,
      selectedBorderStroke: selectedBorderStroke ?? this.selectedBorderStroke,
    );