操作符 - 方法

Duration operator -(
  1. Duration other
)

从当前Duration对象中减去other,并以新的Duration对象返回差异。

实现

Duration operator -(Duration other) {
  return Duration._microseconds(_duration - other._duration);
}