getColor function
Implementation
Color getColor(ButtonType buttonType) {
switch (buttonType) {
case ButtonType.primary:
return Colors.blue;
case ButtonType.normal:
return Color.fromARGB(255, 231, 231, 231);
case ButtonType.danger:
return Colors.red;
}
}