End class

Specify how a RecurrenceRule ends.

Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

End(EndType type, {Duration? elapsedTime, int? count})
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.
factory
End.fromJson(Map<String, dynamic> json)
factory
End.never()
The recurrence repeats forever.
factory
End.until(Duration elapsedTime)
Bounds the recurrence rule in an inclusive manner to the associated start date of this rule plus elapsedTime.
factory

Properties

count → int?
final
elapsedTime → Duration?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → EndType
final

Methods

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

Operators

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