LinuxHeadlessInAppWebView class

Class that represents a WebView in headless mode. It can be used to run a WebView in background without attaching an InAppWebView to the widget tree.

NOTE: Remember to dispose it when you don't need it anymore.

Inheritance
  • Object
  • PlatformInterface
  • LinuxHeadlessInAppWebView

Constructors

LinuxHeadlessInAppWebView(PlatformHeadlessInAppWebViewCreationParams params)
Constructs a LinuxHeadlessInAppWebView.
LinuxHeadlessInAppWebView.static()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
View ID.
latefinal
params → PlatformHeadlessInAppWebViewCreationParams
The parameters used to initialize the PlatformHeadlessInAppWebView.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
webViewController → LinuxInAppWebViewController?
WebView Controller that can be used to access the InAppWebViewController API.
no setter

Methods

dispose() → Future<void>
Disposes the headless WebView.
getSize() → Future<Size?>
Gets the current size in pixels of the WebView.
isClassSupported({TargetPlatform? platform}) → bool
Check if the current class is supported by the defaultTargetPlatform or a specific platform.
inherited
isMethodSupported(PlatformHeadlessInAppWebViewMethod method, {TargetPlatform? platform}) → bool
Check if the given method is supported by the defaultTargetPlatform or a specific platform.
inherited
isPropertySupported(dynamic property, {TargetPlatform? platform}) → bool
Check if the given property is supported by the defaultTargetPlatform or a specific platform. The property should be one of the PlatformWebViewCreationParamsProperty or PlatformHeadlessInAppWebViewCreationParamsProperty values.
inherited
isRunning() → bool
Indicates if the headless WebView is running or not.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() → Future<void>
Runs the headless WebView.
setSize(Size size) → Future<void>
Set the size of the WebView in pixels.
toString() → String
A string representation of this object.
inherited

Operators

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