CupertinoProgressBar constructor

const CupertinoProgressBar({
  1. Key? key,
  2. double value = 0.0,
  3. Color? trackColor = CupertinoColors.systemFill,
  4. Color? valueColor,
  5. String? semanticsLabel,
  6. String? semanticsValue,
})

Creates an iOS-style progress bar.

The value argument can either be null for an indeterminate progress indicator, or non-null for a determinate progress indicator.

Accessibility

The semanticsLabel can be used to identify the purpose of this progress bar for screen reading software. The semanticsValue property may be used for determinate progress indicators to indicate how much progress has been made.

Implementation

const CupertinoProgressBar({
  Key? key,
  this.value = 0.0,
  this.trackColor = CupertinoColors.systemFill,
  this.valueColor,
  this.semanticsLabel,
  this.semanticsValue,
})  : assert(value >= 0.0 && value <= 1.0),
      super(key: key);