getButtonColor method

  1. @override
Color getButtonColor()

Implementation

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