operator <= method Null safety

bool operator <=(
  1. Duration other
)

Whether this Duration is shorter than or equal to other.

Implementation

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