circularProgress method

YYDialog circularProgress({
  1. dynamic padding,
  2. dynamic backgroundColor,
  3. dynamic valueColor,
  4. dynamic strokeWidth,
})

Implementation

YYDialog circularProgress({padding, backgroundColor, valueColor, strokeWidth}) {
  return this.widget(Padding(
    padding: padding,
    child: CircularProgressIndicator(
      strokeWidth: strokeWidth ?? 4.0,
      backgroundColor: backgroundColor,
      valueColor: AlwaysStoppedAnimation<Color>(valueColor),
    ),
  ));
}