getButtonColor method

  1. @override
Color getButtonColor()

Implementation

@override
Color getButtonColor() {
  if (style!.buttonType == AuthButtonType.secondary)
    return style!.buttonColor ??
        (darkMode ? AuthColors.darkMode : AuthColors.facebook);
  if (style!.iconType == AuthIconType.secondary)
    return style!.buttonColor ??
        (darkMode ? AuthColors.darkMode : Colors.white);
  return style!.buttonColor ??
      (darkMode ? AuthColors.darkMode : AuthColors.facebook);
}