getBackgroundColor static method
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);
}
}