TextDayColor method

dynamic TextDayColor(
  1. int j
)

Implementation

TextDayColor(int j) {
  var date1 = DateTime(year, month, j);
  String weekDays = DateFormat('EEE').format(date1);
  return weekDays == "Sat" || weekDays == "Sun" ? Colors.red : Colors.black;
}