PickerItem<T> constructor

PickerItem<T>({
  1. Widget? text,
  2. T? value,
  3. List<PickerItem<T>>? children,
})

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});