CustomDropdown constructor

const CustomDropdown({
  1. Key? key,
  2. required String hintText,
  3. required List<String> optionList,
  4. required IconData icon,
  5. Color? iconColor = CustomLightTheme.primaryColor,
  6. Color? backgroundColor = Colors.white,
  7. Color? textColor = Colors.black54,
  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 = CustomLightTheme.primaryColor,
    this.backgroundColor = Colors.white,
    this.textColor = Colors.black54,
    required this.action,
    required this.width,
    this.hasTrailing = false})
    : super(key: key);