Watch class

A watch for events for a form.

When the designated event happens, a notification will be published to the specified target. The notification's attributes will include a formId key that has the ID of the watched form and an eventType key that has the string of the type. Messages are sent with at-least-once delivery and are only dropped in extraordinary circumstances. Typically all notifications should be reliably delivered within a few seconds; however, in some situations notifications may be delayed. A watch expires seven days after it is created unless it is renewed with watches.renew

Constructors

Watch({String? createTime, String? errorType, String? eventType, String? expireTime, String? id, String? state, WatchTarget? target})
Watch.fromJson(Map json_)

Properties

createTime String?
Timestamp of when this was created.
getter/setter pair
errorType String?
The most recent error type for an attempted delivery.
getter/setter pair
eventType String?
Which event type to watch for.
getter/setter pair
expireTime String?
Timestamp for when this will expire.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID of this watch.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The current state of the watch.
getter/setter pair
target WatchTarget?
Where to send the notification.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited