disableAlpha function

bool disableAlpha(
  1. Set<MaterialState> material,
  2. Set<ButtonState> button
)

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);
}