SWebViewConfig class

Constructors

SWebViewConfig({bool autoDetectFrameRestrictions = true, List<String> corsProxyUrls = const ['https://api.codetabs.com/v1/proxy?quest=', 'https://cors.bridged.cc/', 'https://api.allorigins.win/raw?url='], Set<String> knownRestrictedDomains = const {'google.com', 'github.com', 'facebook.com', 'twitter.com', 'instagram.com', 'linkedin.com', 'pinterest.com', 'reddit.com', 'amazon.com', 'ebay.com'}, Duration proxyCacheTtl = const Duration(days: 7), bool cacheProxyByHost = true})
const

Properties

autoDetectFrameRestrictions → bool
Automatically detect frame restrictions and apply proxy only when needed.
final
cacheProxyByHost → bool
When true, cache proxy decisions by host instead of full URL.
final
corsProxyUrls → List<String>
List of CORS proxies used as fallback on web platform.
final
hashCode → int
The hash code for this object.
no setterinherited
knownRestrictedDomains → Set<String>
Domains known to block iframe embedding.
final
proxyCacheTtl → Duration
Restriction cache entry TTL.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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