operator == method

bool operator == (
  1. 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;