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