isValid method
Implementation
@override
bool isValid() {
if (model.required != null && model.required!) {
if (returnedData?.id == -1 || returnedData == null) {
return false;
} else {
return true;
}
} else {
return true;
}
}