success static method
Implementation
static ButtonState success({
Color color = Colors.green,
Color fg = Colors.white,
double iconSize = 24,
bool isCompact = true,
Widget? child,
}) => ButtonState(
id: 'success',
color: color,
foregroundColor: fg,
isCompact: isCompact,
child: child ?? Icon(Icons.check_rounded, color: fg, size: iconSize),
);