CustomDropdown constructor
const
CustomDropdown({
- Key? key,
- required String hintText,
- required List<
String> optionList, - required IconData icon,
- Color? iconColor = CustomLightTheme.primaryColor,
- Color? backgroundColor = Colors.white,
- Color? textColor = Colors.black54,
- required StringCallback? action,
- required double width,
- 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);