isValid method
Implementation
bool isValid(){
if (id == null || id?.trim() == '') return false;
if (code == null || code?.trim() == '') return false;
if (name == null || name?.trim() == '') return false;
return true;
}
bool isValid(){
if (id == null || id?.trim() == '') return false;
if (code == null || code?.trim() == '') return false;
if (name == null || name?.trim() == '') return false;
return true;
}