isValid method
Implementation
bool isValid() {
if (validateHijri(this.hYear!, this.hMonth!, this.hDay!)) {
if (this.hDay! <= getDaysInMonth(this.hYear!, this.hMonth!)) {
return true;
} else {
return false;
}
} else {
return false;
}
}