CustomDropdown constructor

const CustomDropdown({
  1. Key? key,
  2. required String hintText,
  3. required List<String> optionList,
  4. required IconData icon,
  5. Color? iconColor = CustomTheme.primaryColor,
  6. Color? backgroundColor = CustomTheme.secondaryBorderColor,
  7. Color? textColor = Colors.white,
  8. required StringCallback? action,
  9. required double width,
  10. bool? hasTrailing = false,
})

Implementation

const CustomDropdown(
    {Key? key,
    required this.hintText,
    required this.optionList,
    required this.icon,
    this.iconColor = CustomTheme.primaryColor,
    this.backgroundColor = CustomTheme.secondaryBorderColor,
    this.textColor = Colors.white,
    required this.action,
    required this.width,
    this.hasTrailing = false})
    : super(key: key);