RecurrenceDay class

A day of the week with an optional position for recurring events.

Used in MonthlyRecurrence and YearlyRecurrence to express BYDAY patterns.

Without position: "every Tuesday" (BYDAY=TU). With position: "2nd Tuesday" (BYDAY=2TU) or "last Friday" (BYDAY=-1FR).

Constructors

RecurrenceDay(DayOfWeek day, {int? position})
const

Properties

day DayOfWeek
The day of the week.
final
hashCode int
The hash code for this object.
no setteroverride
position int?
Which occurrence of this weekday within the recurrence period.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRruleByDay() String
Serializes to RRULE BYDAY format (e.g., TU, 2TU, -1FR).
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromRruleByDay(String byDay) RecurrenceDay?
Parses a BYDAY value, with or without numeric prefix. Returns null if the format is invalid.