timeoutForLifecycleState method

Duration? timeoutForLifecycleState(
  1. RequestLifecycleState state
)

Returns the timeout for the specified request lifecycle state if there is one specified, otherwise returns null.

This is the timeout specified in the partialTimeouts parameter of the constructor for more granular control over timeouts.

If no timeout is specified for the specified state, this will return null.

Implementation

Duration? timeoutForLifecycleState(RequestLifecycleState state) =>
    _lifecycleTimeouts?.forState(state);