operator + method

TimeSpan operator +(
  1. TimeSpan other
)

Implementation

TimeSpan operator +(TimeSpan other) {
  return TimeSpan(
      negated: this.negated ^ other.negated,
      years: years + other.years,
      months: months + other.months,
      weeks: weeks + other.weeks,
      days: days + other.days,
      hours: hours + other.hours,
      minutes: minutes + other.minutes,
      seconds: seconds + other.seconds,
      millis: millis + other.millis,
      micros: micros + other.micros);
}