NiceDropDownBox<T> constructor

const NiceDropDownBox<T>({
  1. Key? key,
  2. required Widget contentBuilder(
    1. BuildContext context,
    2. VoidCallback close
    ),
  3. T? value,
  4. String displayBuilder(
    1. T value
    )?,
  5. String? label,
  6. String? hint,
  7. String? errorText,
  8. bool enabled = true,
  9. double? dropdownWidth,
  10. double dropdownHeight = 300,
})

Implementation

const NiceDropDownBox({
  super.key,
  required this.contentBuilder,
  this.value,
  this.displayBuilder,
  this.label,
  this.hint,
  this.errorText,
  this.enabled = true,
  this.dropdownWidth,
  this.dropdownHeight = 300,
});