open method

void open({
  1. String? title,
  2. String? subtitle,
  3. double? initialProgress,
})

Opens the progress widget with initial values

Implementation

void open({
  String? title,
  String? subtitle,
  double? initialProgress,
}) {
  this.title.value = title ?? '';
  this.subtitle.value = subtitle ?? '';
  progress.value = initialProgress;
  isVisible.value = true;
  isCompleted.value = false;
  hasError.value = false;
  errorMessage.value = '';
}