getOptionByValue method

OPTIONElement? getOptionByValue(
  1. Object? value
)

Implementation

OPTIONElement? getOptionByValue(Object? value) {
  if (value == null) return null;
  return options.firstWhereOrNull((e) => e.value == value);
}