getBackgroundColor static method

Color getBackgroundColor(
  1. ButtonType type,
  2. ButtonState state
)

Implementation

static Color getBackgroundColor(ButtonType type, ButtonState state) {
  switch (type) {
    case ButtonType.primary:
      return _getPrimaryColor(state);
    case ButtonType.secondary:
      return _getSecondaryColor(state);
    case ButtonType.tertiary:
      return _getTertiaryColor(state);
  }
}