operator + method

time operator + (
  1. time other
)

Implementation

time operator +(time other) {
  return time.copyContructor(
      hour: this.hour + other.hour,
      minute: this.minute + other.minute,
      second: this.second + other.second,
      isMilitary: this.isMilitary);
}