loading static method
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),
),
);