getMeskeremOne method

String getMeskeremOne({
  1. bool returnName = false,
})

Get year's first weekday of current year or the very first weekday that the current year is going to be start from. It returns the name of the weekday if returnName=true otherwise it will return the index of the weekday from list of weekdays.

Implementation

String getMeskeremOne({bool returnName = false}) {
  int rabeet = ameteAlem ~/ 4;
  int result = (ameteAlem + rabeet) % 7;
  if (returnName) return _weekdays[result];
  return result.toString();
}