AdvancedProgressBar constructor

AdvancedProgressBar({int max: 100, int value: 0, int percentage_decimal_places: 2, DateTime started, String actual })

Implementation

AdvancedProgressBar({this.max = 100, this.value = 0,this.percentage_decimal_places = 2, this.started, this.actual}) {
  if(max == 0) return;
  if(this.started == null) this.started = DateTime.now();
  this.timer = new Timer.periodic(Duration(milliseconds: 125), (timer) {
    this.render();
  });
  Console.hideCursor();
}