operator == method

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

Returns true if other is a Date at the same date.

Refer to DateTime for more information.

Implementation

@override
bool operator ==(Object other) {
  if (other is Date) {
    return dateTime == other.dateTime;
  } else {
    return this == other;
  }
}