validateInput method
Implementation
bool validateInput() {
if (firstNameController.text.isEmpty) {
return false;
} else if (lastNameController.text.isEmpty) {
return false;
} else if (cardNumberController.text.isEmpty) {
return false;
} else if (expiryDateController.text.isEmpty) {
return false;
} else if (cvcController.text.isEmpty) {
return false;
} else if (zipController.text.isEmpty) {
return false;
} else {
return true;
}
}