SelectionOptions<T>.fromList constructor
Creates an instance from a list of options.
Implementation
// TODO(google): Rename this to withOptions.
SelectionOptions.fromList(List<T> options, {String? label})
: this(<OptionGroup<T>>[OptionGroup<T>.withLabel(options, label)]);