copyWith method
Creates a copy of the instance and replaces the given variables of that copy.
Implementation
RadialGaugeSegment copyWith(
{double? minValue,
double? maxValue,
double? minAngle,
double? maxAngle,
double? width,
Gradient? gradient,
Color? color,
Border? border,
BorderRadiusGeometry? borderRadius,
BlendMode? backgroundBlendMode}) {
return RadialGaugeSegment(
minValue: minValue ?? this.minValue,
maxValue: maxValue ?? this.maxValue,
minAngle: minAngle ?? this.minAngle,
maxAngle: maxAngle ?? this.maxAngle,
width: width ?? this.width,
gradient: gradient ?? this.gradient,
color: color ?? this.color,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
backgroundBlendMode: backgroundBlendMode ?? this.backgroundBlendMode,
);
}