picker<T> method
T
picker<T>(})
A choice between named options, label to value.
swatch and icon put a colour dot or a glyph before each label on a
catalog page. style is how the picker is drawn: a segmented control
puts every option on show, for a choice like Light and Dark.
Implementation
T picker<T>(
String name,
Map<String, T> values,
T defaultValue, {
Color Function(T value)? swatch,
IconData Function(T value)? icon,
PickerStyle style = PickerStyle.dropdown,
}) {
return defaultValue;
}