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
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.