typed library
Opt-in typed generic API for dropdown_plus_bloc.
Import separately from the main library:
import 'package:dropdown_plus_bloc/typed.dart';
Legacy DropdownItem-based widgets remain on:
import 'package:dropdown_plus_bloc/dropdown_plus_bloc.dart';
Classes
-
DropdownPlusController<
T> - Programmatic control for typed single-select dropdowns.
-
DropdownPlusMultiController<
T> - Programmatic control for typed multi-select dropdowns.
- DropdownPlusTheme
- Defines the visual theme for SearchableDropdownPlus and MultiSelectDropdownPlus widgets.
- DropdownPlusThemePresets
- Provides ready-made DropdownPlusTheme instances for each DropdownPlusThemeStyle.
-
TypedDropdownAdapter<
T> -
Maps between domain type
Tand DropdownItem for typed dropdown widgets. -
TypedMultiSelectDropdown<
T> - Typed multi-select searchable dropdown without BLoC/Cubit.
-
TypedMultiSelectDropdownPlus<
T, C extends BlocBase< S> , S> - Typed multi-select searchable dropdown with BLoC/Cubit integration.
-
TypedSearchableDropdown<
T> - Typed single-select searchable dropdown without BLoC/Cubit.
-
TypedSearchableDropdownPlus<
T, C extends BlocBase< S> , S> - Typed single-select searchable dropdown with BLoC/Cubit integration.
Enums
- DropdownPlusThemeStyle
- Predefined visual styles for SearchableDropdownPlus and MultiSelectDropdownPlus.
Extensions
-
TypedDropdownItemX
on DropdownItem<
T> - Reads the typed value from a DropdownItem.
-
TypedDropdownListX
on List<
T> - Bridges List<T> to legacy DropdownItem lists.
Typedefs
- DropdownEmptyBuilder = Widget Function(BuildContext context)
- DropdownErrorBuilder = Widget Function(BuildContext context, Object error, VoidCallback retry)
- DropdownLoadingBuilder = Widget Function(BuildContext context)
-
ItemEquals<
T> = bool Function(T a, T b) - Equality function for typed dropdown values.
-
ItemLabel<
T> = String Function(T item) - Label function for typed dropdown items.
-
TypedItemBuilder<
T> = Widget Function(BuildContext context, T item, bool isSelected) - Typed single-select item row builder.
-
TypedValueBuilder<
T> = Widget Function(T selected) - Typed selected-value display builder (single select).
-
TypedValuesBuilder<
T> = Widget Function(List< T> selected) - Typed multi-select chip display builder.