evaluate method
Evaluates expression in one library scope.
libraryUri selects that library. When it is omitted, evaluation uses
the app's root library, where private names from other libraries do not
compile.
Throws a StateError when no app is connected.
Implementation
Future<Response> evaluate(String expression, {String? libraryUri}) async {
_ensureConnected();
return _vmService!.evaluate(
_isolateId!,
await targetIdFor(libraryUri),
expression,
);
}