操作符 <= 方法

bool operator <=(
  1. Duration other
)

判断这个 Duration 是否短于或等于 other

实现

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