getButtonTypeColor method

dynamic getButtonTypeColor(
  1. ButtonType buttonType
)

Implementation

getButtonTypeColor(ButtonType buttonType) {
  switch (buttonType) {
    case ButtonType.Primary:
      return DirectColor.primaryColor;
      break;
    case ButtonType.Secondary:
      return DirectColor.primaryColor;
      break;
    case ButtonType.Disable:
      return DirectColor.disableColor;
      break;
    default:
  }
}