WebCallOptions constructor
WebCallOptions({})
Creates a WebCallOptions object.
WebCallOptions can specify static metadata
, timeout
,
metadata providers
of CallOptions, bypassCorsPreflight
and
withCredentials
for CORS request.
Implementation
factory WebCallOptions({
Map<String, String>? metadata,
Duration? timeout,
List<MetadataProvider>? providers,
bool? bypassCorsPreflight,
bool? withCredentials,
}) {
return WebCallOptions._(
Map.unmodifiable(metadata ?? {}),
timeout,
List.unmodifiable(providers ?? []),
bypassCorsPreflight: bypassCorsPreflight ?? false,
withCredentials: withCredentials ?? false,
);
}