weekOfYear property
Week of the year with Saturday-first weeks, 1 to 54.
Week 1 is the week that contains 1 Farvardin, even when it starts in Esfand of the previous year. Week 54 only happens in a leap year that starts on a Friday, such as 1399.
Implementation
int get weekOfYear =>
(dayOfYear - 1 + firstDayOfYear.weekdayPersian - 1) ~/ 7 + 1;