RequestOptions constructor
RequestOptions({
- required String url,
- OfflinePolicyAction? offlinePolicyAction,
- SlowNetworkPolicyAction? slowNetworkPolicyAction,
- Map<
String, String?> ? headers, - bool? cancelOnDispose,
- ExecutionMode? executionMode = ExecutionMode.direct,
- RequestBody? body,
- 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();