operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Value equality, like the C# TimeSpan struct: two TimeSpans are equal when they have the same number of milliseconds.

Implementation

@override
bool operator ==(Object other) => other is TimeSpan && other.time == time;