SBBPickerScrollViewItemBuilder typedef

SBBPickerScrollViewItemBuilder = SBBPickerItem? Function(BuildContext context, int index)

Signature for a function that creates a SBBPickerItem for a given index, but may return null.

Used by SBBPicker and SBBPickerScrollView.

Unlike most builders, this callback can return null, indicating the index is out of range.

Implementation

typedef SBBPickerScrollViewItemBuilder = SBBPickerItem? Function(BuildContext context, int index);