invoke method

Future<Response> invoke(
  1. String expression
)

Implementation

Future<Response> invoke(String expression) async {
  final isolateRef = mainIsolate!;
  final isolateId = isolateRef.id!;
  final isolate = await serviceConnection.getIsolate(isolateId);

  return await serviceConnection.evaluate(
    isolateId,
    isolate.rootLib!.id!,
    expression,
  );
}