optionsInput property
set
optionsInput
(dynamic value)
Sets the available options for the selection component.
Accepts either a SelectionOptions or a List. If a List is passed, the StringSelectionOptions class will be used to create the selection options.
Implementation
set optionsInput(dynamic value) {
if (value == null || value is SelectionOptions<T>) {
options = value;
} else if (value is List<T>) {
options = StringSelectionOptions(value, toFilterableString: itemRenderer);
} else {
throw ArgumentError(
'Unsupported selection options type; value must be null, '
'SelectionOptions<$T>, or List<$T>, but is ${value.runtimeType}');
}
}