copyWith method

MeterProps copyWith({
  1. double? value,
  2. double? min,
  3. double? max,
  4. double? low,
  5. double? high,
  6. double? optimum,
  7. String? label,
  8. bool? showValue,
  9. String? valueSuffix,
  10. MeterStyleVariant? style,
  11. MeterColorVariant? color,
  12. MeterSizeVariant? size,
  13. 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,
  );
}