NetworkConfiguration class
The main configuration object for the network reachability engine.
This struct aggregates all settings including targets, intervals, quality thresholds, and security/resilience preferences.
- Available extensions
Constructors
-
NetworkConfiguration({required List<
NetworkTarget> targets, required BigInt checkIntervalMs, required BigInt cacheValidityMs, required QualityThresholds qualityThreshold, required SecurityConfig security, required ResilienceConfig resilience}) -
const
Properties
- cacheValidityMs → BigInt
-
The duration (in milliseconds) for which a network report is cached.
final
- checkIntervalMs → BigInt
-
The interval in milliseconds between automatic periodic checks.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- qualityThreshold → QualityThresholds
-
Custom latency thresholds for determining connection quality.
final
- resilience → ResilienceConfig
-
Resilience settings including circuit breakers and jitter analysis.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- security → SecurityConfig
-
Security-specific settings such as VPN and DNS hijacking detection.
final
-
targets
→ List<
NetworkTarget> -
A list of network endpoints (NetworkTarget) to be monitored.
final
Methods
-
copyWith(
{List< NetworkTarget> ? targets, BigInt? checkIntervalMs, BigInt? cacheValidityMs, QualityThresholds? qualityThreshold, SecurityConfig? security, ResilienceConfig? resilience}) → NetworkConfiguration -
Available on NetworkConfiguration, provided by the NetworkConfigurationCopyWith extension
Creates a copy of NetworkConfiguration with the given fields replaced by the new values. -
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.
override
Static Methods
-
default_(
) → Future< NetworkConfiguration> - Creates a production-ready default configuration.
-
newInstance(
{required List< NetworkTarget> targets, required BigInt checkIntervalMs, required BigInt cacheValidityMs, required QualityThresholds qualityThreshold, required SecurityConfig security, required ResilienceConfig resilience}) → Future<NetworkConfiguration> - Creates a new NetworkConfiguration instance.