compareTo method

int compareTo(
  1. Date other
)

Refer to DateTime for more information.

Implementation

int compareTo(Date other) => dateTime.compareTo(other.dateTime);