operator < method Null safety

bool operator < (
  1. Duration other
)

Whether this Duration is shorter than other.

Implementation

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