TomTodoRepeat class

The day of a month a monthly or yearly rule names — exactly one of: day (1–31; a month without that day takes its last), lastDay, the nth weekday (1–5, or -1 for the last), or the first / last working day (workingDay, Monday to Friday).

Constructors

TomTodoRepeat({required TomTodoRepeatRule rule, int every = 1, String? unit, List<String> weekdays = const [], int? day, bool lastDay = false, int? nth, String? weekday, String? workingDay, int? month, String? time, String? until, int? count})

Properties

count ↔ int?
The number of repetitions after which the todo is done for good.
getter/setter pair
day ↔ int?
For monthly / yearly: a day of the month, 1–31.
getter/setter pair
every ↔ int
The interval: every N days / weeks / months / years. At least 1.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
lastDay ↔ bool
For monthly / yearly: the last day of the month.
getter/setter pair
month ↔ int?
For yearly: the month, 1–12.
getter/setter pair
nth ↔ int?
For monthly / yearly: the nth (1–5, -1 = last) weekday of the month.
getter/setter pair
rule ↔ TomTodoRepeatRule
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
time ↔ String?
The time of day, HH:MM, local; absent: the start of the day.
getter/setter pair
unit ↔ String?
For after: days, weeks, months or years.
getter/setter pair
until ↔ String?
The last day a repetition may be due on, yyyy-MM-dd.
getter/setter pair
weekday ↔ String?
getter/setter pair
weekdays ↔ List<String>
For weekly: mon … sun.
getter/setter pair
workingDay ↔ String?
For monthly / yearly: first or last working day of the month.
getter/setter pair

Methods

check() → void
Throws a FormatException when the rule is not one the schema allows.
copy() → TomTodoRepeat
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
The stored form, fields in the schema's order, each only when set.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

nextRepeatRe → RegExp
A next_repeat moment: yyyy-MM-ddTHH:MM with Z or an offset.
final

Static Methods

fromMap(Map map) → TomTodoRepeat
Reads a stored repeat: map; an unknown key or value is a format error.

Constants

fields → const Set<String>
The fields a repeat: map may carry.
units → const Set<String>
weekdayNames → const Set<String>