SeniorBalance constructor

const SeniorBalance({
  1. Key? key,
  2. required List<String> labels,
  3. required List<String> values,
  4. required String moneySign,
  5. SeniorBalanceStyle? style,
})

Creates the Balance component of the SDS.

The labels, values and moneySign parameters are required.

Implementation

const SeniorBalance({
  Key? key,
  required this.labels,
  required this.values,
  required this.moneySign,
  this.style,
})  : assert(labels.length == values.length && values.length != 0),
      super(key: key);