NegativeValueOptions class

Configuration for negative value formatting.

Constructors

NegativeValueOptions({NegativeDisplayMode mode = NegativeDisplayMode.minusSign, String increasePrefix = '+', String decreasePrefix = '-', String increaseSuffix = '', String decreaseSuffix = '', String unchangedLabel = 'unchanged', String customFormatter(double bytes, bool isNegative)?})
Create negative value options.
const

Properties

customFormatter → String Function(double bytes, bool isNegative)?
Custom formatter function.
final
decreasePrefix → String
Prefix for negative deltas.
final
decreaseSuffix → String
Suffix for negative deltas.
final
hashCode → int
The hash code for this object.
no setterinherited
increasePrefix → String
Prefix for positive deltas.
final
increaseSuffix → String
Suffix for positive deltas.
final
mode → NegativeDisplayMode
Display mode for negative values.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unchangedLabel → String
Label for unchanged values.
final

Methods

copyWith({NegativeDisplayMode? mode, String? increasePrefix, String? decreasePrefix, String? increaseSuffix, String? decreaseSuffix, String? unchangedLabel, String customFormatter(double bytes, bool isNegative)?}) → NegativeValueOptions
Creates a copy with modified options.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaults → const NegativeValueOptions
Default options with minus sign.
delta → const NegativeValueOptions
Delta style: "+500 KB" / "-500 KB".
parentheses → const NegativeValueOptions
Parentheses style: (500 KB).
verbose → const NegativeValueOptions
Verbose style: "500 KB reduction".