DelayDelivery constructor
DelayDelivery(
- int scheduleDelaySeconds
Creates a delayed delivery schedule.
The scheduleDelaySeconds specifies how many seconds from now
the task should be attempted. Must be non-negative.
Throws FirebaseFunctionsAdminException if scheduleDelaySeconds is negative.
Implementation
DelayDelivery(this.scheduleDelaySeconds) {
if (scheduleDelaySeconds < 0) {
throw FirebaseFunctionsAdminException(
FunctionsClientErrorCode.invalidArgument,
'scheduleDelaySeconds must be a non-negative duration in seconds.',
);
}
}