NegativeValueOptions constructor

const NegativeValueOptions({
  1. NegativeDisplayMode mode = NegativeDisplayMode.minusSign,
  2. String increasePrefix = '+',
  3. String decreasePrefix = '-',
  4. String increaseSuffix = '',
  5. String decreaseSuffix = '',
  6. String unchangedLabel = 'unchanged',
  7. String customFormatter(
    1. double bytes,
    2. bool isNegative
    )?,
})

Create negative value options.

Implementation

const NegativeValueOptions({
  this.mode = NegativeDisplayMode.minusSign,
  this.increasePrefix = '+',
  this.decreasePrefix = '-',
  this.increaseSuffix = '',
  this.decreaseSuffix = '',
  this.unchangedLabel = 'unchanged',
  this.customFormatter,
});