getIconBackground method
getIconBackground() a method which returns the iconBackground.
For more info about iconBackground take a look on iconBackground
Implementation
@override
Color? getIconBackground() {
if (!enabled) return Color(0xffd2d2d2);
if (style!.buttonType == AuthButtonType.secondary)
return darkMode ? Colors.black12 : Colors.white;
}