disable function

bool disable(
  1. Set<ButtonState> button
)

disable flag

Implementation

bool disable(Set<ButtonState> button) {
  return button.contains(ButtonState.disabled) ||
      button.contains(ButtonState.forceDisabled);
}