PickerItemBuilder typedef

PickerItemBuilder = Widget? Function(BuildContext context, String? text, Widget? child, bool selected, int col, int index)

Builder function for customizing individual picker items.

This callback is called for each item in the picker columns. If null is returned, the default item builder is used.

Parameters:

  • context - The build context
  • text - The text content of the item (may be null)
  • child - The default child widget for the item (may be null)
  • selected - Whether this item is currently selected
  • col - The column index of this item
  • index - The row index of this item within the column

Returns a custom widget for the item, or null to use the default.

Implementation

typedef PickerItemBuilder = Widget? Function(BuildContext context, String? text,
    Widget? child, bool selected, int col, int index);