operator == method

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

Whether all components of this RelativeDuration are equal to the respective components of the other RelativeDuration.

Implementation

@override
bool operator ==(Object other) {
  return other is RelativeDuration &&
      _months == other._months &&
      _days == other._days &&
      _microseconds == other._microseconds;
}