ProgressIndicator constructor Null safety

const ProgressIndicator(
  1. {Key? key,
  2. double? value,
  3. Color? backgroundColor,
  4. Color? color,
  5. Animation<Color?>? valueColor,
  6. String? semanticsLabel,
  7. String? semanticsValue}
)

Creates a progress indicator.

The value argument can either be null for an indeterminate progress indicator, or a non-null value between 0.0 and 1.0 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 ProgressIndicator({
  super.key,
  this.value,
  this.backgroundColor,
  this.color,
  this.valueColor,
  this.semanticsLabel,
  this.semanticsValue,
});