Skip to content

PeriodicTrigger

A trigger that triggers every period.

Triggers once on resume and then every period. For triggers at a set time of day, week, or month, use RecurrentScheduledTrigger or CronScheduledTrigger.

Inheritance
Implemented types
Annotations

Constructors

PeriodicTrigger.fromJson

PeriodicTrigger.fromJson(
  1. Map<String, dynamic> json
)

PeriodicTrigger

PeriodicTrigger({
  1. required Duration period,
})

Creates a trigger that triggers every period.

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

period

Duration period
getter/setter pair

The time between two triggers.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.