JobTriggers constructor
JobTriggers({
- OnInstallTrigger? onInstall,
- OnBootTrigger? onBoot,
- IntervalTrigger? interval,
- CronTrigger? cron,
- MovementTrigger? movement,
- ButtonTrigger? button,
- NetworkTrigger? network,
- PubSubTrigger? pubsub,
Implementation
factory JobTriggers({
OnInstallTrigger? onInstall,
OnBootTrigger? onBoot,
IntervalTrigger? interval,
CronTrigger? cron,
MovementTrigger? movement,
ButtonTrigger? button,
NetworkTrigger? network,
PubSubTrigger? pubsub,
}) {
final _result = create();
if (onInstall != null) {
_result.onInstall = onInstall;
}
if (onBoot != null) {
_result.onBoot = onBoot;
}
if (interval != null) {
_result.interval = interval;
}
if (cron != null) {
_result.cron = cron;
}
if (movement != null) {
_result.movement = movement;
}
if (button != null) {
_result.button = button;
}
if (network != null) {
_result.network = network;
}
if (pubsub != null) {
_result.pubsub = pubsub;
}
return _result;
}