DesignOptionBuilder<T> typedef

DesignOptionBuilder<T> = Widget Function(BuildContext context, T option, Set<WidgetState> states)

Paints one option for its states: WidgetState.focused while it is highlighted (the keyboard's place in the list), WidgetState.selected when it is the combobox's value, WidgetState.disabled when it cannot be taken, and a pointer's hovered and pressed.

Implementation

typedef DesignOptionBuilder<T> = Widget Function(
  BuildContext context,
  T option,
  Set<WidgetState> states,
);