getTextColor static method
Implementation
static Color getTextColor(ButtonType type, ButtonState state) {
if (state == ButtonState.disabled) {
return Colors.grey.shade600;
}
return type == ButtonType.primary ? Colors.white : Colors.black;
}