MethodChannelIframe class

An implementation of IframePlatform that uses method channels.

Inheritance

Constructors

MethodChannelIframe()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({required String url, double? width, double? height, String? allow, String? sandbox, String? referrerPolicy, String? loading}) Future<String?>
Creates an iframe with the specified URL and properties.
override
executeScript(String script) Future<String?>
Executes JavaScript code in the iframe context.
override
getCurrentUrl() Future<String?>
Gets the current URL of the iframe.
override
getPlatformVersion() Future<String?>
Returns the platform version.
override
Navigates the iframe to a new URL.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<String?>
Reloads the iframe content.
override
setVisible(bool visible) Future<void>
Sets the visibility of the iframe.
override
toString() String
A string representation of this object.
inherited

Operators

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