setReceiveTimeout method

dynamic setReceiveTimeout(
  1. Duration duration
)

Set the receiveTimeout for the request.

Implementation

setReceiveTimeout(Duration duration) {
  _api.options.receiveTimeout = duration;
}