RequestOptionsDTOPatterns extension
Adds pattern-matching-related methods to RequestOptionsDTO.
Methods
-
map<
TResult extends Object?> (TResult $default(_RequestOptionsDTO value)) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_RequestOptionsDTO value)?) → TResult? -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_RequestOptionsDTO value)?, {required TResult orElse()}) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String url, OfflinePolicyActionDTO? offlinePolicyAction, SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, CacheOptionsDTO? cacheOptions, Map< String, String?> ? headers, bool? cancelOnDispose, RequestBodyDTO? body)?, {required TResult orElse()}) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String id, String url, OfflinePolicyActionDTO? offlinePolicyAction, SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, CacheOptionsDTO? cacheOptions, Map< String, String?> ? headers, bool? cancelOnDispose, RequestBodyDTO? body)) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String url, OfflinePolicyActionDTO? offlinePolicyAction, SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, CacheOptionsDTO? cacheOptions, Map< String, String?> ? headers, bool? cancelOnDispose, RequestBodyDTO? body)?) → TResult? -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofwhenthat fallback to returningnull