LifecycleHandler constructor

const LifecycleHandler({
  1. Input<ExecAction>? exec,
  2. Input<HTTPGetAction>? httpGet,
  3. Input<SleepAction>? sleep,
  4. Input<TCPSocketAction>? tcpSocket,
})

Creates a new LifecycleHandler. exec Exec specifies a command to execute in the container. httpGet HTTPGet specifies an HTTP GET request to perform. sleep Sleep represents a duration that the container should sleep. tcpSocket Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.

Implementation

const LifecycleHandler({
  this.exec,
  this.httpGet,
  this.sleep,
  this.tcpSocket,
});