weekdayPersian property

int get weekdayPersian

Persian weekday, 1 = Saturday to 7 = Friday.

This is the column of the date in a Persian calendar grid, so the first row of a month has firstDayOfMonth.weekdayPersian - 1 empty cells.

Implementation

int get weekdayPersian => (weekday + 1) % 7 + 1;