PickerItem<T> constructor
PickerItem<T> ({
- Widget? text,
- T? value,
- List<
PickerItem< ? children,T> >
Creates a picker item.
Parameters:
text- Widget to display in the picker (optional)value- Data value associated with this item (optional)children- Child items for hierarchical structures (optional)
At least one of text or value should be provided.
Implementation
PickerItem({this.text, this.value, this.children});