End
Specify how a RecurrenceRule ends.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
End.count
- int count
Specify a number of occurrences at which to range-bound the recurrence. The start date time always counts as the first occurrence.
End.fromJson
End.never
The recurrence repeats forever.
End
End.until
- Duration elapsedTime
Bounds the recurrence rule in an inclusive manner to the associated start date of this rule plus elapsedTime.
Properties
count
Number of occurrences; only for EndType.COUNT.
elapsedTime
Time after the start of the rule when it ends; only for EndType.UNTIL.
type
How the recurrence ends.
Methods
toJson
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.