updateProgress method

void updateProgress(
  1. double progress,
  2. String text
)

update progress value and text when ProgressHudType = progress

should call show(ProgressHudType.progress, "Loading") before use

Implementation

void updateProgress(double progress, String text) {
  if (this.mounted) {
    setState(() {
      _progressValue = progress;
      _text = text;
    });
  }
}