WebViewCreationParams class

Internal snapshot of controller configuration passed at view creation time.

Annotations

Constructors

WebViewCreationParams({required int controllerId, required bool javaScriptEnabled, required Color backgroundColor, required bool zoomEnabled, required bool hasNavigationDecision, required List<String> channelNames, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{}, String? userAgent, String? initialHtml, String? initialBaseUrl, String? initialUrl, String initialMethod = 'GET', Map<String, String> initialHeaders = const <String, String>{}, Uint8List? initialBody})
Creates WebViewCreationParams.
const

Properties

backgroundColor → Color
Initial background color applied prior to first content paint.
final
channelNames → List<String>
Names of JavaScript message channels registered before mount.
final
controllerId → int
Unique numeric identifier of the owning WebViewController.
final
gestureRecognizers → Set<Factory<OneSequenceGestureRecognizer>>
Gesture recognizers forwarded to mobile platform views (AndroidView / UiKitView) when embedded inside scrollable Flutter containers.
final
hashCode → int
The hash code for this object.
no setterinherited
hasNavigationDecision → bool
Whether Dart registered an NavigationDelegate.onNavigationRequest hook.
final
initialBaseUrl → String?
Optional base URL paired with initialHtml.
final
initialBody → Uint8List?
Optional request body paired with initialUrl.
final
initialHeaders → Map<String, String>
HTTP headers paired with initialUrl.
final
initialHtml → String?
Optional HTML string queued before widget mount.
final
initialMethod → String
HTTP method paired with initialUrl.
final
initialUrl → String?
Optional target URL queued before widget mount.
final
javaScriptEnabled → bool
Whether JavaScript execution starts enabled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userAgent → String?
Optional custom User-Agent string.
final
zoomEnabled → bool
Whether pinch/page zoom gestures are enabled.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Encodes this snapshot into a standard codec map for native channels.
toString() → String
A string representation of this object.
inherited

Operators

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