IsSame method

bool IsSame(
  1. Recurrence otherRecurrence
)
Checks if two recurrence objects are identical. The recurrence to compare this one to.

Implementation

bool IsSame(Recurrence otherRecurrence) {
  if (otherRecurrence == null) {
    return false;
  }

  return (this.runtimeType == otherRecurrence.runtimeType &&
      this._numberOfOccurrences == otherRecurrence._numberOfOccurrences &&
      this._endDate == otherRecurrence._endDate &&
      this._startDate == otherRecurrence._startDate);
}