SlotRules class final
How a provider is booked — kept per provider, asked over any range
(findSlots, checkSlot). Lengths are real (elapsed) time. A value
that cannot be right (a duration under a minute, a negative buffer) is
said as invalid-slot-query, never thrown.
Constructors
Properties
- availability → Availability
-
final
- bufferAfter → Duration
-
final
- bufferBefore → Duration
-
Kept free before and after each appointment (preparation, cleaning).
final
-
busy
→ List<
Busy> -
final
- duration → Duration
-
At least a minute, at most 365 days.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxAdvanceDays → int?
-
No slot starting later than this many days after now.
final
- maxPerDay → int?
-
At most this many bookings starting on one of the provider's dates; a
full date offers nothing.
final
- minNotice → Duration?
-
No slot starting sooner than this after now.
final
- now → Instant?
-
Needed by minNotice and maxAdvanceDays: the engine never reads a clock.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → Duration?
-
Between two slot starts, counted from each opening. Default: duration.
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.
override