multi<T> static method
Creates a multi-select searchable prompt.
Implementation
static List<T> multi<T>({
required String title,
required List<T> items,
PromptTheme theme = PromptTheme.dark,
int maxVisible = 10,
Set<int>? initialSelection,
String Function(T)? labelBuilder,
bool searchEnabled = true,
}) {
final prompt = SearchableListPrompt<T>(
title: title,
items: items,
theme: theme,
multiSelect: true,
maxVisible: maxVisible,
initialSelection: initialSelection,
searchEnabled: searchEnabled,
);
return prompt.run(itemLabel: labelBuilder);
}