operator == method

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

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

Implementation

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