evaluate method

JsEvalResult evaluate(
  1. String code, {
  2. String? sourceUrl,
})

Implementation

JsEvalResult evaluate(String code, {String? sourceUrl}) {
  try {
    _jsEvalResult = _jsRuntime.evaluate(code);
    return _jsEvalResult;
  } on PlatformException catch (e) {
    debugPrint('Failed to load js engine: ${e.details}');
    rethrow;
  }
}