isWeekend property

bool get isWeekend

Return true if is weekend, false otherwise.

Implementation

bool get isWeekend =>
    weekday == DateTime.saturday || weekday == DateTime.sunday;