AdTimeoutPolicy class

Network-specific timeout policy.

Annotations

Constructors

AdTimeoutPolicy({Duration wifiTimeout = const Duration(seconds: 12), Duration cellularTimeout = const Duration(seconds: 22), Duration ethernetTimeout = const Duration(seconds: 10), Duration otherTimeout = const Duration(seconds: 18)})
Creates an AdTimeoutPolicy with network-specific durations.
const

Properties

cellularTimeout → Duration
The timeout duration on cellular / metered connections.
final
ethernetTimeout → Duration
The timeout duration on Ethernet connections.
final
hashCode → int
The hash code for this object.
no setteroverride
otherTimeout → Duration
The timeout duration on other or unknown network conditions.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wifiTimeout → Duration
The timeout duration on Wi-Fi connections.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(AdNetworkType network) → Duration
Resolves the timeout duration for the given network type.
toString() → String
A string representation of this object.
inherited

Operators

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