updateAll method

void updateAll({
  1. String? title,
  2. String? subtitle,
  3. double? progress,
})

Updates title, subtitle, and progress at once

Implementation

void updateAll({
  String? title,
  String? subtitle,
  double? progress,
}) {
  if (title != null) this.title.value = title;
  if (subtitle != null) this.subtitle.value = subtitle;
  if (progress != null) {
    this.progress.value = progress.clamp(0.0, 1.0);
  }
}