evalSync method
Evaluates immediately in this context and converts the returned value.
Implementation
Object? evalSync(
String code, {
Duration? timeout,
String name = '<eval>',
Map<String, Object?> tempGlobals = const {},
}) {
_ensureOpen();
return _engine.evalSync(
code,
timeout: timeout,
name: name,
tempGlobals: tempGlobals,
);
}