circularLoader static method

dynamic circularLoader({
  1. double size = 50.0,
  2. Color? color,
  3. double? strokeWidth,
})

Circular Progress Indicator.

Implementation

static circularLoader(
    {double size = 50.0, Color? color, double? strokeWidth}) {
  return Center(
    child: Container(
      width: size,
      height: size,
      alignment: Alignment.center,
      child: CircularProgressIndicator(
        strokeWidth: strokeWidth ?? 4.0,
        valueColor: AlwaysStoppedAnimation<Color>(color ?? Colors.black),
      ),
    ),
  );
}