compare method Null safety
- DateTime target
Implementation
bool compare(DateTime target) {
return (this.year == target.year) &&
(this.month == target.month) &&
(this.day == target.day);
}
bool compare(DateTime target) {
return (this.year == target.year) &&
(this.month == target.month) &&
(this.day == target.day);
}