copyWith method
Creates a copy of the current object with new values specified in arguments.
Implementation
GaugeChartSettings copyWith({
bool allowNullColorPattern = false,
List<int>? colorPattern,
double? sectionStroke,
double? selectedSectionStroke,
double? gaugeAngle,
bool? debugMode,
bool? selectionEnabled,
HitTestBehavior? behavior,
bool? runInitialAnimation,
}) =>
GaugeChartSettings(
colorPattern: allowNullColorPattern
? colorPattern
: colorPattern ?? this.colorPattern,
sectionStroke: sectionStroke ?? this.sectionStroke,
selectedSectionStroke:
selectedSectionStroke ?? this.selectedSectionStroke,
gaugeAngle: gaugeAngle ?? this.gaugeAngle,
debugMode: debugMode ?? this.debugMode,
selectionEnabled: selectionEnabled ?? this.selectionEnabled,
behavior: behavior ?? this.behavior,
runInitialAnimation: runInitialAnimation ?? this.runInitialAnimation,
);