operator < method

bool operator <(
  1. Duration other
)

Check if duration is less than another

Implementation

bool operator <(Duration other) => inMilliseconds < other.inMilliseconds;