ALL constant

Object const ALL

Convenience flag that you can use when a null value means ALL. For example, suppose if you want until an async process schedules an appointment for specific time. However, if no time is selected, you want to schedule the whole day (all "times"). You can do: dispatch(WaitAction.add(appointment, ref: time ?? Wait.ALL));

And then later check if you are waiting for a specific time: if (wait.isWaiting(appointment, ref: time) { ... }

Or if you are waiting for the whole day: if (wait.isWaiting(appointment, ref: Wait.ALL) { ... }

Implementation

static const ALL = Object();