AmountDisplay.compact constructor

const AmountDisplay.compact({
  1. Key? key,
  2. required Money? amount,
  3. AmountDirection direction = AmountDirection.none,
  4. TextStyle? style,
  5. bool showCurrency = true,
  6. String placeholder = '\u2014',
  7. String prefix = '',
  8. String suffix = '',
})

Compact constructor for inline use.

Implementation

const AmountDisplay.compact({
  super.key,
  required this.amount,
  this.direction = AmountDirection.none,
  this.style,
  this.showCurrency = true,
  this.placeholder = '\u2014',
  this.prefix = '',
  this.suffix = '',
}) : compact = true;