copyWith method
Creates a copy with modified options.
Implementation
NegativeValueOptions copyWith({
NegativeDisplayMode? mode,
String? increasePrefix,
String? decreasePrefix,
String? increaseSuffix,
String? decreaseSuffix,
String? unchangedLabel,
String Function(double bytes, bool isNegative)? customFormatter,
}) {
return NegativeValueOptions(
mode: mode ?? this.mode,
increasePrefix: increasePrefix ?? this.increasePrefix,
decreasePrefix: decreasePrefix ?? this.decreasePrefix,
increaseSuffix: increaseSuffix ?? this.increaseSuffix,
decreaseSuffix: decreaseSuffix ?? this.decreaseSuffix,
unchangedLabel: unchangedLabel ?? this.unchangedLabel,
customFormatter: customFormatter ?? this.customFormatter,
);
}