IframePlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- IframePlatform
- Implementers
Constructors
- IframePlatform()
- Constructs a IframePlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
-
executeScript(
String script) → Future< String?> - Executes JavaScript code in the iframe context.
-
getCurrentUrl(
) → Future< String?> - Gets the current URL of the iframe.
-
getPlatformVersion(
) → Future< String?> - Returns the platform version.
- Navigates the iframe to a new URL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → Future< String?> - Reloads the iframe content.
-
setVisible(
bool visible) → Future< void> - Sets the visibility of the iframe.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ IframePlatform
-
The default instance of IframePlatform to use.
getter/setter pair