ProgressStatus constructor

const ProgressStatus({
  1. double radius = 15.0,
  2. double fillValue = 0.0,
  3. Color fillColor = blueColor,
  4. Color backgroundColor = greyColor,
  5. bool isStrokeCapRounded = true,
  6. double strokeWidth = 5.0,
  7. bool showCenterText = true,
  8. TextStyle? centerTextStyle,
  9. Alignment centerTextAlignment = Alignment.center,
  10. Duration animationDuration = defaultDuration,
  11. Curve animationCurve = Curves.fastOutSlowIn,
})

Implementation

const ProgressStatus(
    {double radius = 15.0,
    double fillValue = 0.0,
    Color fillColor = blueColor,
    Color backgroundColor = greyColor,
    bool isStrokeCapRounded = true,
    double strokeWidth = 5.0,
    bool showCenterText = true,
    TextStyle? centerTextStyle,
    Alignment centerTextAlignment = Alignment.center,
    Duration animationDuration = defaultDuration,
    Curve animationCurve = Curves.fastOutSlowIn})
    : _radius = radius * 2,
      _fillValue = fillValue,
      _fillColor = fillColor,
      _backgroundColor = backgroundColor,
      _isStrokeCapRounded = isStrokeCapRounded,
      _strokeWidth = strokeWidth,
      _showCenterText = showCenterText,
      _centerTextStyle = centerTextStyle,
      _centerTextAlignment = centerTextAlignment,
      _animationDuration = animationDuration,
      _animationCurve = animationCurve;