运算符 <= 方法

bool operator <=(
  1. Duration other
)

判断此 Duration 是否短于或等于 other

实现

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