getFirstDayOfMonth static method

int getFirstDayOfMonth(
  1. List<String> dayNames,
  2. HeaderOptions headersStyle
)

Implementation

static int getFirstDayOfMonth(List<String> dayNames, HeaderOptions headersStyle) {
  final currentMonth = CalendarUtils.getPartByInt(format: PartFormat.MONTH);
  final monthDays = CalendarUtils.getMonthDays(headersStyle.weekDayStringType, currentMonth);
  return dayNames.indexOf(monthDays[1]);
}