LifecycleHandler class

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

Constructors

LifecycleHandler({ExecAction? exec, HTTPGetAction? httpGet, TCPSocketAction? tcpSocket})
Default constructor.
const
LifecycleHandler.fromJson(Map<String, dynamic> json)
Creates a LifecycleHandler from JSON data.
factory

Properties

exec ExecAction?
Exec specifies the action to take.
final
hashCode int
The hash code for this object.
no setterinherited
httpGet HTTPGetAction?
HTTPGet specifies the http request to perform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tcpSocket TCPSocketAction?
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
final

Methods

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

Operators

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