WebScript class

Class to create a script that can be run on Flutter Web.

name provides a unique identifier for the script. Note: It must be unique! Otherwise your script may not be called when using controller.evaluateJavascriptWeb. script provides the script itself. If you'd like to return a value back to Dart, you can do that via a postMessage call (see the README for an example).

Constructors

WebScript({required String name, required String script})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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