DefaultRestRequestExecutor constructor

DefaultRestRequestExecutor(
  1. Client client, {
  2. Duration timeOutDuration = const Duration(minutes: 5),
})

Any Client implementation from the "http" library (link:https://pub.dev/packages/http). timeOutDuration configures the request's result wait duration, if request will rich the timeOutDuration the SocketException will be thrown.

Implementation

DefaultRestRequestExecutor(this.client,
    {this.timeOutDuration = const Duration(minutes: 5)});