MyJS class
Utility functions to abstract working with the browsers JavaScript engine.
purpose
- Extend built-in dart JavaScript functionality. Note: atob and btoa are also available from dart:html.window without reverting to a javascript interop.
Constructors
- MyJS()
-
Returns an existing singleton.
factory
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
-
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
Static Methods
-
atob(
String val) → String? -
Converts
val
from base64 to text. -
btoa(
String val) → String? -
Converts
val
from text to base64. -
getIFrameHtml(
IFrameElement iFrame) → String? - Determines the HTML that is used to compose an iFrame.
-
removeAllTimers(
) → void - Removes all javascript timers from the browser tab.
-
runAnyJavaScript(
String command) → dynamic -
Runs the javascript
command
and returns any result.