StacWebView class abstract

StacWebView is a widget that renders a web page within a flutter application.

Annotations
  • @freezed

Constructors

StacWebView.new({required String url, @Default(JavaScriptMode.unrestricted) JavaScriptMode javaScriptMode, @Default("#FFFFFF") String backgroundColor, String? userAgent, @Default(false) bool enableZoom, @Default(TextDirection.ltr) TextDirection layoutDirection})
StacWebView constructor.
const
factory
StacWebView.fromJson(Map<String, dynamic> json)
factory

Properties

backgroundColor String
Background color of the WebView.
no setterinherited
copyWith → $StacWebViewCopyWith<StacWebView>
Create a copy of StacWebView with the given fields replaced by the non-null parameter values.
no setterinherited
enableZoom bool
Sets whether zoom is enabled for the WebView.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
javaScriptMode → JavaScriptMode
Sets whether JavaScript execution is enabled.
no setterinherited
layoutDirection TextDirection
The layout direction for the WebView.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The URL to load in the WebView.
no setterinherited
userAgent String?
The user agent for the WebView.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this StacWebView to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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