idleTimeout property Null safety
Gets or sets the timeout used for idle keep-alive connections. If no further request is seen within idleTimeout after the previous request was completed, the connection is dropped.
Default is 120 seconds.
Note that it may take up to
2 * idleTimeout before a idle connection is
To disable, set idleTimeout to
Duration? idleTimeout = const Duration(seconds: 120);