buttonBuilder property

(Widget Function(Widget child, T? value)?) buttonBuilder
final

Custom builder for the main widget of EJSelectorButton.

buttonBuilder's child will be widget of selected item and it's value will be value of selected item, if no item is selected, child will be hint and if hint is null, child will be Container.

If buttonBuilder is null or return null, main widget of EJSelectorButton will be widget of selected item and if no item is selected, it will be hint.

Implementation

final Widget Function(Widget child, T? value)? buttonBuilder;