isAfter method
Returns true
if this IsoDuration this occurs after the other
.
Each IsoDuration is calculated as a sum of all properties and then the duration is compared.
Example:
final dur = IsoDuration(hours: 1, minutes: 30);
final dur2 = IsoDuration(hours: 10, minutes: 0);
dur.isAfter(dur2); // false
Implementation
bool isAfter(IsoDuration other) {
if (this == other) return false;
if (isNegative && !other.isNegative) return false;
if (!isNegative && other.isNegative) return true;
if (isPrecise && other.isPrecise) return toSeconds() > other.toSeconds();
return _isAfter(other);
}