CustomPaginatedDropdown constructor
const
CustomPaginatedDropdown({
- Key? key,
- required List<
String> items, - required VoidCallback onLoadMore,
- ValueChanged<
String> ? onItemSelected, - bool isLoading = false,
- double itemHeight = 48.0,
- double maxHeight = 300.0,
- double width = 300.0,
- double maxWidth = 500.0,
- InputDecoration? inputDecoration,
- TextStyle? highlightTextStyle,
- Color? highlightColor,
- Duration scrollAnimationDuration = const Duration(milliseconds: 100),
- Curve scrollAnimationCurve = Curves.easeInOut,
- double keyRepeatDelayMs = 200,
- TextStyle? textStyle,
- String? preselectedItem,
- bool enabled = true,
- 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,
});