idleTimeout property

Duration idleTimeout
read / write

Gets and sets the idle timeout of non-active persistent (keep-alive) connections.

The default value is 15 seconds.

Implementation

Duration idleTimeout = const Duration(seconds: 15)