copyWith method
MeterProps
copyWith({
- double? value,
- double? min,
- double? max,
- double? low,
- double? high,
- double? optimum,
- String? label,
- bool? showValue,
- String? valueSuffix,
- MeterStyleVariant? style,
- MeterColorVariant? color,
- MeterSizeVariant? size,
- int? segments,
Implementation
MeterProps copyWith({
double? value,
double? min,
double? max,
double? low,
double? high,
double? optimum,
String? label,
bool? showValue,
String? valueSuffix,
MeterStyleVariant? style,
MeterColorVariant? color,
MeterSizeVariant? size,
int? segments,
}) {
return MeterProps(
value: value ?? this.value,
min: min ?? this.min,
max: max ?? this.max,
low: low ?? this.low,
high: high ?? this.high,
optimum: optimum ?? this.optimum,
label: label ?? this.label,
showValue: showValue ?? this.showValue,
valueSuffix: valueSuffix ?? this.valueSuffix,
style: style ?? this.style,
color: color ?? this.color,
size: size ?? this.size,
segments: segments ?? this.segments,
);
}