operator <= method

bool operator <=(
  1. Date other
)

Checks if this is before or at the same day as other.

Implementation

bool operator <=(final Date other) => this == other || this < other;