WebFNetworkOptions class

Network-related options for a WebFController.

Combines HTTP cache toggle and Dio HttpClientAdapter into one place, with optional per-platform overrides.

Constructors

WebFNetworkOptions({bool? enableHttpCache, Future<HttpClientAdapter> httpClientAdapter()?, WebFNetworkOptions? android, WebFNetworkOptions? ios, WebFNetworkOptions? macos, WebFNetworkOptions? windows, WebFNetworkOptions? linux, WebFNetworkOptions? fuchsia})
const

Properties

android → WebFNetworkOptions?
Platform-specific overrides. When present, values here take precedence over the top-level values on the corresponding platform.
final
effectiveEnableHttpCache → bool?
Effective enableHttpCache considering platform override.
no setter
enableHttpCache → bool?
Toggle WebF's HTTP cache for this controller.
final
fuchsia → WebFNetworkOptions?
final
hashCode → int
The hash code for this object.
no setterinherited
httpClientAdapter → Future<HttpClientAdapter> Function()?
Optional async factory for Dio HttpClientAdapter for this controller. If provided, WebF's Dio instance will await the adapter returned by this callback during client creation. If null, WebF chooses a reasonable default adapter per platform.
final
ios → WebFNetworkOptions?
final
linux → WebFNetworkOptions?
final
macos → WebFNetworkOptions?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
windows → WebFNetworkOptions?
final

Methods

getEffectiveHttpClientAdapter() → Future<HttpClientAdapter?>
Effective httpClientAdapter considering platform override.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited