operator < method

bool operator <(
  1. Week other
)

Returns true if this is before than other.

Implementation

bool operator <(Week other) => index < other.index;