callServiceExtensionOnMainIsolate method

Future<Response> callServiceExtensionOnMainIsolate(
  1. String method, {
  2. Map<String, dynamic>? args,
})

Implementation

Future<Response> callServiceExtensionOnMainIsolate(
  String method, {
  Map<String, dynamic>? args,
}) async {
  final isolate = await whenValueNonNull(isolateManager.mainIsolate);

  return await service!.callServiceExtension(
    method,
    args: args,
    isolateId: isolate?.id,
  );
}