incrasePercent method
Implementation
void incrasePercent(double percent) {
this.percent = percent;
String text = (percent * 100).toInt().toString();
percentText = percent < 101 ? "Loading %" + text : "Loading %100";
update();
}
void incrasePercent(double percent) {
this.percent = percent;
String text = (percent * 100).toInt().toString();
percentText = percent < 101 ? "Loading %" + text : "Loading %100";
update();
}