toFullDayName property

String get toFullDayName

Gets the full day name (e.g., "Monday") corresponding to this number (1-7).

This method follows ISO 8601, where the week starts on Monday (1) and ends on Sunday (7).

Example:

1.toFullDayName; // Returns "Monday"
7.toFullDayName; // Returns "Sunday"

If the number is outside the range 1-7, it will be clamped within this range.

Implementation

String get toFullDayName {
  final dayIndex = toInt().clamp(1, 7);
  return fullWeekdays[dayIndex]!;
}