operator == method
Whether all components of this
DateDuration are equal to the
respective components of the other
DateDuration.
Implementation
@override
bool operator ==(Object other) {
return other is DateDuration &&
_months == other._months &&
_days == other._days;
}