ProgressBar constructor

ProgressBar({
  1. required ProgressBarFormatter formatter,
  2. required int total,
  3. int? width,
  4. String completeChar = '=',
  5. String incompleteChar = '-',
})

Implementation

ProgressBar({
  required this.formatter,
  required int total,
  this.width,
  String completeChar = '=',
  String incompleteChar = '-',
})  : assert(total > 1),
      _total = total,
      assert(completeChar.length == 1),
      _completeChar = completeChar,
      assert(incompleteChar.length == 1),
      _incompleteChar = incompleteChar;