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

Programmatic control for typed single-select dropdowns.
Programmatic control for typed multi-select dropdowns.
Defines the visual theme for SearchableDropdownPlus and MultiSelectDropdownPlus widgets.
Provides ready-made DropdownPlusTheme instances for each DropdownPlusThemeStyle.
TypedDropdownAdapter<T>
Maps between domain type T and 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.

Extensions

TypedDropdownItemX on DropdownItem<T>
Reads the typed value from a DropdownItem.
TypedDropdownListX on List<T>
Bridges List<T> to legacy DropdownItem lists.

Typedefs

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.