CircularProgressIndicator constructor Null safety

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

Creates a circular progress indicator.

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 CircularProgressIndicator({
  Key? key,
  double? value,
  Color? backgroundColor,
  Color? color,
  Animation<Color?>? valueColor,
  this.strokeWidth = 4.0,
  String? semanticsLabel,
  String? semanticsValue,
}) : _indicatorType = _ActivityIndicatorType.material,
     super(
       key: key,
       value: value,
       backgroundColor: backgroundColor,
       color: color,
       valueColor: valueColor,
       semanticsLabel: semanticsLabel,
       semanticsValue: semanticsValue,
     );