getFirstDayOfWeek method

int getFirstDayOfWeek()

Returns the day of week that starts weeks in the current locale.

Days are still numbered the standard way with 0 for Sunday through 6 for Saturday, but calendars should be displayed and weeks calculated with the day of week returned from this function as the first day of the week.

Implementation

int getFirstDayOfWeek() {
  final String jscode1 = 'new LocaleInfo("$locale").getFirstDayOfWeek()';
  final String result = ILibJS.instance.evaluate(jscode1).stringResult;
  return int.parse(result);
}