FastDropDown<T> constructor

const FastDropDown<T>({
  1. Key? key,
  2. String? hint,
  3. T? value,
  4. double radius = 8,
  5. void onChanged(
    1. T?
    )?,
  6. Zod? validation,
  7. Widget? clearButton,
  8. bool showClearButton = true,
  9. Widget itemBuilder(
    1. T
    )?,
  10. required List<T> items,
})

use this widget to create a dropdown

example:

FastDropDown(
  items: const [1, 2, 3, 4],
  hint: 'Selecione o numero',
  itemBuilder: (v) {
   return FastRow(
    children: [
      Icon(FastIcons.ant.profile),
      Text(v.toString()),
    ],
  );},
),

Implementation

const FastDropDown({
  super.key,
  this.hint,
  this.value,
  this.radius = 8,
  this.onChanged,
  this.validation,
  this.clearButton,
  this.showClearButton = true,
  this.itemBuilder,
  required this.items,
});