Skip to content

DateTimeTrigger

A trigger that triggers once at a specific date and time.

Inheritance
Implemented types
Annotations

Constructors

DateTimeTrigger.fromJson

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

DateTimeTrigger

DateTimeTrigger({
  1. required DateTime schedule,
})

Creates a trigger that triggers at schedule.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

schedule

DateTime schedule
getter/setter pair

When to trigger. Nothing happens if this time has passed.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.