RecurrencePattern class

Represents the recurrence pattern of a task.

Annotations
  • @JsonSerializable()

Constructors

RecurrencePattern.new({String? type, int? interval, int? month, int? dayOfMonth, String? daysOfWeek, String? firstDayOfWeek, String? index})
Creates a new RecurrencePattern instance.
RecurrencePattern.fromJson(Map<String, dynamic> json)
Creates a RecurrencePattern instance from a JSON object.
factory

Properties

dayOfMonth int?
The day of the month for the recurrence (1-31).
final
daysOfWeek String?
The day of the week for the recurrence (Sunday to Saturday).
final
firstDayOfWeek String?
The first day of the week.
final
hashCode int
The hash code for this object.
no setterinherited
index String?
The index of the week in the month (first, second, third, fourth, last).
final
interval int?
The interval between occurrences.
final
month int?
The month of the year for the recurrence (1-12).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The type of recurrence (daily, weekly, monthly, yearly).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this RecurrencePattern instance to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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