DefaultRequestExecutor constructor
DefaultRequestExecutor(
- Client client, {
- Duration timeOutDuration = const Duration(minutes: 5),
Any Client implementation from the "http" library (link:https://pub.flutter-io.cn/packages/http).
timeOutDuration configures the request's result wait duration, if request will
rich the timeOutDuration the SocketException will be thrown.
Implementation
DefaultRequestExecutor(this.client,
{this.timeOutDuration = const Duration(minutes: 5)});