operator == method
- Object other
override
Whether this Iso8601Duration properties are an exact match with other.
Nothing fancy is done here - no converting to seconds or normalising, it's just a comparison of properties.
Implementation
@override
bool operator ==(Object other) {
if (other is Iso8601Duration &&
seconds == other.seconds &&
minutes == other.minutes &&
hours == other.hours &&
days == other.days &&
months == other.months &&
years == other.years) {
return true;
}
return false;
}