ByWeekday class

A weekday, optionally with a position: "every Monday" (no ordinal), "the 2nd Tuesday" (ordinal: 2) or "the last Friday" (ordinal: -1).

Constructors

ByWeekday(int weekday, [int? ordinal])
Creates a weekday selector.
const

Properties

code → String
RRULE code such as MO, 2TU or -1FR.
no setter
hashCode → int
The hash code for this object.
no setteroverride
ordinal → int?
Position inside the month (or year); negative counts from the end.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
weekday → int
DateTime.monday..DateTime.sunday.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

parse(String s) → ByWeekday
Parses MO, +2TU, -1FR.