Skip to content

End

Specify how a RecurrenceRule ends.

Create one with End.until, End.count or End.never.

Annotations

Constructors

End.count

End.count(
  1. 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.fromJson(
  1. Map<String, dynamic> json
)

End.never

End.never()

The recurrence repeats forever.

End

End(
  1. EndType type, {
  2. Duration? elapsedTime,
  3. int? count,
})

End.until

End.until(
  1. Duration elapsedTime
)

Bounds the recurrence rule in an inclusive manner to the associated start date of this rule plus elapsedTime.

Properties

count

int? count
final

Number of occurrences; only for EndType.COUNT.

elapsedTime

Duration? elapsedTime
final

Time after the start of the rule when it ends; only for EndType.UNTIL.

type

EndType type
final

How the recurrence ends.

Methods

toJson

Map<String, dynamic> toJson()

toString

String toString()
override

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.