getButtonType method

dynamic getButtonType(
  1. ButtonType buttonType
)

Implementation

getButtonType(ButtonType buttonType) {
  switch (buttonType) {
    case ButtonType.Primary:
      return true;
      break;
    case ButtonType.Secondary:
      return true;
      break;
    case ButtonType.Disable:
      return false;
      break;
    default:
  }
}