PlexCalendarRecurrence class

RRULE-lite rule for expanding a PlexCalendarEvent across a date range.

Constructors

PlexCalendarRecurrence({PlexCalendarFrequency frequency = PlexCalendarFrequency.daily, int interval = 1, int? count, DateTime? until})
const
PlexCalendarRecurrence.daily({int interval = 1, int? count, DateTime? until})
factory
PlexCalendarRecurrence.weekly({int interval = 1, int? count, DateTime? until})
factory

Properties

count int?
Maximum number of instances, including the original start.
final
frequency PlexCalendarFrequency
Daily or weekly.
final
hashCode int
The hash code for this object.
no setterinherited
interval int
Step between instances. Values below 1 are treated as 1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
until DateTime?
Inclusive calendar date; instances after this date are omitted.
final

Methods

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

Operators

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

Static Methods

expand(PlexCalendarEvent event, {required DateTime rangeStart, required DateTime rangeEnd}) List<PlexCalendarEvent>
Expands event into occurrences whose start date falls on or between rangeStart and rangeEnd (inclusive dates).