ProgressRing constructor

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

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({
  Key? key,
  this.value,
  this.strokeWidth = 4.5,
  this.semanticLabel,
  this.backgroundColor,
  this.activeColor,
})  : assert(value == null || value >= 0 && value <= 100),
      super(key: key);