StatePickerDialog<T> constructor
const
StatePickerDialog<T> ({
- Key? key,
- required ValueChanged<
T> onValuePicked, - required List<
T> states, - Widget? title,
- EdgeInsetsGeometry? titlePadding,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
- String? semanticLabel,
- ItemFilter<
T> ? itemFilter, - Comparator<
T> ? sortComparator, - List<
T> ? topStates, - ItemBuilder<
T> ? itemBuilder, - bool isDividerEnabled = false,
- Widget divider = const Divider(height: 0.0),
- bool isSearchable = false,
- bool popOnPick = true,
- InputDecoration? searchInputDecoration,
- Color? searchCursorColor,
- Widget? searchEmptyView,
- SearchFilter<
T> ? searchFilter,
Creates a StatePickerDialog.
onValuePicked
is required and specifies the callback triggered on item selection.states
is required and contains the list of items to display.
Implementation
const StatePickerDialog({
super.key,
required this.onValuePicked,
required this.states,
this.title,
this.titlePadding,
this.contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
this.semanticLabel,
this.itemFilter,
this.sortComparator,
this.topStates,
this.itemBuilder,
this.isDividerEnabled = false,
this.divider = const Divider(height: 0.0),
this.isSearchable = false,
this.popOnPick = true,
this.searchInputDecoration,
this.searchCursorColor,
this.searchEmptyView,
this.searchFilter,
});