toFullDayName property
String
toFullDayName
Gets the full day name (e.g., "Monday") corresponding to this number (1-7).
Implementation
String get toFullDayName {
final dayIndex = (this.toInt() - 1) % 7; // Ensure value is within 0-6
return [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday'
][dayIndex];
}