isSameQuarter method

bool isSameQuarter(
  1. Date other
)

Check if this date is in the same quarter

Implementation

bool isSameQuarter(Date other) => startOfQuarter == other.startOfQuarter;