weekday property
ISO weekday, 1 = Monday to 7 = Sunday, the same as DateTime.weekday.
The Persian week starts on Saturday, but the number follows DateTime so it can be compared with DateTime.monday and friends directly. Use weekdayPersian for the Saturday-first number.
Implementation
int get weekday => _julianDay % 7 + 1;