disableAlpha function
check for set alpha color
Implementation
bool disableAlpha(Set<MaterialState> material, Set<ButtonState> button) {
return (material.contains(MaterialState.disabled) ||
button.contains(ButtonState.disabled)) &&
!button.contains(ButtonState.forceDisabled);
}