operator <= method Null safety

bool operator <= (
  1. Duration other
)

Returns true if the value of this Duration is less than or equal to the value of other.

Implementation

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