operator == method

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

Whether this date is the same as other.

Implementation

@override
bool operator ==(Object other) {
  if (other.runtimeType != runtimeType) {
    return false;
  }

  return other is Date && other._daysSinceEpoch == _daysSinceEpoch;
}