运算符 < 方法

bool operator <(
  1. Duration other
)

判断此 Duration 是否比 other 短。

实现

bool operator <(Duration other) => this._duration < other._duration;