getOption method

OPTIONElement? getOption(
  1. Object? option
)

Implementation

OPTIONElement? getOption(Object? option) {
  if (option == null) return null;
  if (option is OPTIONElement) {
    return getOptionByValue(option.value);
  }
  return getOptionByValue(option.toString());
}