isOptionDisabled method

bool isOptionDisabled(
  1. T item
)

If selectionOptions implements Selectable, it is called.

Implementation

bool isOptionDisabled(T item) {
  // TODO: Verify if this can be simplified to .isDisabledIn.
  //
  // The prior code did a check for `!= SelectableOption.Selected`. It is
  // possible there are existing users that are relying on `.Hidden` to mean
  // disabled, for example.
  return !Selectable.isSelectableIn(options, item);
}