dropdown<T> method
BlocXFormDropdown<F, P, E, T>
dropdown<T>(
- E key, {
- BlocXDropdownOptions? options,
- required List<
DropdownMenuItem< items,T> >
Builds a BlocXFormDropdown pre-wired to key.
Pass items as the list of DropdownMenuItems and options to
customise the decoration.
Implementation
BlocXFormDropdown<F, P, E, T> dropdown<T>(
E key, {
BlocXDropdownOptions? options,
required List<DropdownMenuItem<T>> items,
}) {
return BlocXFormDropdown<F, P, E, T>(
formKey: key,
items: items,
options: options ?? BlocXDropdownOptions(),
);
}