evalRawJavascript abstract method

Future evalRawJavascript(
  1. String rawJavascript, {
  2. bool inGlobalContext = false,
})

This function allows you to evaluate 'raw' javascript (e.g: 2+2) If you need to call a function you should use the method above (callJsMethod)

The inGlobalContext param should be set to true if you wish to eval your code in the 'window' context, instead of doing it inside the corresponding iframe's 'window'

For more info, check Mozilla documentation on 'window'

Implementation

Future<dynamic> evalRawJavascript(
  String rawJavascript, {
  bool inGlobalContext = false,
});