Repeat class

A set of rules that describe when the event should occur.

Constructors

Repeat({Duration? boundsDuration, Range? boundsRange, Period? boundsPeriod, int? count, int? countMax, num? duration, num? durationMax, String? durationUnit, int? frequency, int? frequencyMax, num? period, num? periodMax, String? periodUnit, FixedList<String>? dayOfWeek, FixedList<Time>? timeOfDay, FixedList<String>? when, int? offset})
Constructs a new Repeat.
Repeat.fromJson(JsonObject _json)
Creates a new Repeat instance from a JsonObject.

Properties

boundsDuration Duration?
Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
no setter
boundsPeriod Period?
Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
no setter
boundsRange Range?
Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
no setter
count int?
A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.
no setter
countMax int?
If present, indicates that the count is a range - so to perform the action between count and countMax times.
no setter
dayOfWeek FixedList<String>?
If one or more days of week is provided, then the action happens only on the specified day(s).
no setter
duration num?
How long this thing happens for when it happens.
no setter
durationMax num?
If present, indicates that the duration is a range - so to perform the action between duration and durationMax time length.
no setter
durationUnit String?
The units of time for the duration, in UCUM units.
no setter
frequency int?
The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.
no setter
frequencyMax int?
If present, indicates that the frequency is a range - so to repeat between frequency and frequencyMax times within the period or period range.
no setter
hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this Repeat instance to a JSON object.
no setter
offset int?
The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.
no setter
period num?
Indicates the duration of time over which repetitions are to occur; e.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.
no setter
periodMax num?
If present, indicates that the period is a range from period to periodMax, allowing expressing concepts such as "do this once every 3-5 days.
no setter
periodUnit String?
The units of time for the period in UCUM units.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeOfDay FixedList<Time>?
Specified time of day for action to take place.
no setter
when FixedList<String>?
Real world events that the occurrence of the event should be tied to.
no setter

Methods

copyWith({Duration? boundsDuration, Range? boundsRange, Period? boundsPeriod, int? count, int? countMax, num? duration, num? durationMax, String? durationUnit, int? frequency, int? frequencyMax, num? period, num? periodMax, String? periodUnit, FixedList<String>? dayOfWeek, FixedList<Time>? timeOfDay, FixedList<String>? when, int? offset}) Repeat
Creates a deep copy of this Repeat instance.
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.
override

Constants

boundsDurationField → const FieldDefinition<Duration>
Field definition for boundsDuration
boundsPeriodField → const FieldDefinition<Period>
Field definition for boundsPeriod
boundsRangeField → const FieldDefinition<Range>
Field definition for boundsRange
countField → const FieldDefinition<int>
Field definition for count
countMaxField → const FieldDefinition<int>
Field definition for countMax
dayOfWeekField → const FieldDefinition<FixedList<String>>
Field definition for dayOfWeek
durationField → const FieldDefinition<num>
Field definition for duration
durationMaxField → const FieldDefinition<num>
Field definition for durationMax
durationUnitField → const FieldDefinition<String>
Field definition for durationUnit
fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Repeat
frequencyField → const FieldDefinition<int>
Field definition for frequency
frequencyMaxField → const FieldDefinition<int>
Field definition for frequencyMax
offsetField → const FieldDefinition<int>
Field definition for offset
periodField → const FieldDefinition<num>
Field definition for period
periodMaxField → const FieldDefinition<num>
Field definition for periodMax
periodUnitField → const FieldDefinition<String>
Field definition for periodUnit
timeOfDayField → const FieldDefinition<FixedList<Time>>
Field definition for timeOfDay
whenField → const FieldDefinition<FixedList<String>>
Field definition for when