operator == method

bool operator == (Object other)
override

Returns true if this Duration has the same value as other.

Implementation

bool operator ==(Object other) =>
    other is Duration && _duration == other.inMicroseconds;