dropdownValidate static method
dynamic
dropdownValidate({})
Implementation
static dynamic dropdownValidate(
{required dynamic selectValue,
required String dummyValue,
required String fieldName}) {
return selectValue == null ||
selectValue.toString().trim() == '' ||
selectValue.toString().toUpperCase() == dummyValue.toUpperCase()
? "Please Select $fieldName"
: null;
}