RequestOptions constructor

RequestOptions({
  1. required String url,
  2. OfflinePolicyAction? offlinePolicyAction,
  3. SlowNetworkPolicyAction? slowNetworkPolicyAction,
  4. Map<String, String?>? headers,
  5. bool? cancelOnDispose,
  6. ExecutionMode? executionMode = ExecutionMode.direct,
  7. RequestBody? body,
  8. CacheOptions? cacheOptions,
})

Implementation

RequestOptions({
  required this.url,
  this.offlinePolicyAction,
  this.slowNetworkPolicyAction,
  this.headers,
  this.cancelOnDispose,
  this.executionMode = ExecutionMode.direct,
  this.body,
  CacheOptions? cacheOptions,
}) : cacheOptions = cacheOptions ?? CacheOptions(),
     id = Uuid().v4();