setConnectTimeout method

dynamic setConnectTimeout(
  1. Duration duration
)

Set the connectTimeout for the request.

Implementation

setConnectTimeout(Duration duration) {
  _api.options.connectTimeout = duration;
}