DeterminateLoadingIndicator constructor

const DeterminateLoadingIndicator({
  1. Key? key,
  2. bool contained = false,
  3. required double progress,
  4. List<RoundedPolygon>? indicatorPolygons,
  5. OutlinedBorder? containerShape,
  6. Color? containerColor,
  7. BorderSide? containerOutline,
  8. Color? activeIndicatorColor,
  9. BorderSide? activeIndicatorOutline,
  10. LoadingIndicatorForEachPolygon forEachPolygon = defaultForEachPolygon,
})

Implementation

const DeterminateLoadingIndicator({
  super.key,
  this.contained = false,
  required this.progress,
  this.indicatorPolygons,
  this.containerShape,
  this.containerColor,
  this.containerOutline,
  this.activeIndicatorColor,
  this.activeIndicatorOutline,
  this.forEachPolygon = defaultForEachPolygon,
}) : assert(progress >= 0.0 && progress <= 1.0),
     assert(
       indicatorPolygons == null || indicatorPolygons.length >= 2,
       "indicatorPolygons should have, at least, two RoundedPolygons",
     );