isWeekend static method

bool isWeekend(
  1. DateTime dateA
)

Implementation

static bool isWeekend(DateTime dateA) {
  return dateA.weekday == DateTime.saturday || dateA.weekday == DateTime.sunday;
}