SelectionOptions<T>.fromList constructor

SelectionOptions<T>.fromList(
  1. List<T> options, {
  2. String? label,
})

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)]);