operator == method

bool operator == (
  1. Object other
)
override

Whether this Duration has the same length as other.

Durations have the same length if they have the same number of microseconds, as reported by inMicroseconds.

Implementation

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/Duration/operator_equals.html