CustomPaginatedDropdown constructor

const CustomPaginatedDropdown({
  1. Key? key,
  2. required List<String> items,
  3. required VoidCallback onLoadMore,
  4. ValueChanged<String>? onItemSelected,
  5. bool isLoading = false,
  6. double itemHeight = 48.0,
  7. double maxHeight = 300.0,
  8. double width = 300.0,
  9. double maxWidth = 500.0,
  10. InputDecoration? inputDecoration,
  11. TextStyle? highlightTextStyle,
  12. Color? highlightColor,
  13. Duration scrollAnimationDuration = const Duration(milliseconds: 100),
  14. Curve scrollAnimationCurve = Curves.easeInOut,
  15. double keyRepeatDelayMs = 200,
  16. TextStyle? textStyle,
  17. String? preselectedItem,
  18. bool enabled = true,
  19. bool caseSensitive = false,
})

Implementation

const CustomPaginatedDropdown({
  super.key,
  required this.items,
  required this.onLoadMore,
  this.onItemSelected,
  this.isLoading = false,
  this.itemHeight = 48.0,
  this.maxHeight = 300.0,
  this.width = 300.0,
  this.maxWidth = 500.0,
  this.inputDecoration,
  this.highlightTextStyle,
  this.highlightColor,
  this.scrollAnimationDuration = const Duration(milliseconds: 100),
  this.scrollAnimationCurve = Curves.easeInOut,
  this.keyRepeatDelayMs = 200,
  this.textStyle,
  this.preselectedItem,
  this.enabled = true,
  this.caseSensitive = false,
});