loading static method

ButtonState loading({
  1. Color color = Colors.lightBlue,
  2. Color fg = Colors.white,
  3. double size = 22,
  4. double stroke = 3,
  5. bool isCompact = true,
  6. Widget? child,
})

Implementation

static ButtonState loading({
  Color color = Colors.lightBlue,
  Color fg = Colors.white,
  double size = 22,
  double stroke = 3,
  bool isCompact = true,
  Widget? child,
}) => ButtonState(
  id: 'loading',
  color: color,
  foregroundColor: fg,
  isCompact: isCompact,
  child:
      child ??
      SizedBox(
        width: size,
        height: size,
        child: CircularProgressIndicator(strokeWidth: stroke, color: fg),
      ),
);