ProgressRing constructor

const ProgressRing({
  1. Key? key,
  2. double? value,
  3. double strokeWidth = 4.5,
  4. String? semanticLabel,
  5. Color? backgroundColor,
  6. Color? activeColor,
  7. bool backwards = false,
})

Creates progress ring.

value, if non-null, must be in the range of 0 to 100

strokeWidth must be equal or greater than 0

Implementation

const ProgressRing({
  super.key,
  this.value,
  this.strokeWidth = 4.5,
  this.semanticLabel,
  this.backgroundColor,
  this.activeColor,
  this.backwards = false,
}) : assert(value == null || value >= 0 && value <= 100);