validateInput method
Implementation
bool validateInput() {
if (firstNameController.text.isEmpty) {
return false;
} else if (lastNameController.text.isEmpty) {
return false;
} else if (emailController.text.isEmpty) {
return false;
} else if (dobController.text.isEmpty) {
return false;
} else if (mobilenumberController.text.isEmpty) {
return false;
} else {
return true;
}
}