CupertinoActivityIndicator.partiallyRevealed constructor

const CupertinoActivityIndicator.partiallyRevealed({
  1. Key? key,
  2. Color? color,
  3. double radius = _kDefaultIndicatorRadius,
  4. double progress = 1.0,
})

Creates a non-animated iOS-style activity indicator that displays a partial count of ticks based on the value of progress.

When provided, the value of progress must be between 0.0 (zero ticks will be shown) and 1.0 (all ticks will be shown) inclusive. Defaults to 1.0.

Implementation

const CupertinoActivityIndicator.partiallyRevealed({
  super.key,
  this.color,
  this.radius = _kDefaultIndicatorRadius,
  this.progress = 1.0,
})  : assert(radius > 0.0),
      assert(progress >= 0.0),
      assert(progress <= 1.0),
      animating = false;