sendToFrontend method

  1. @override
void sendToFrontend(
  1. int? id,
  2. JSONEncodable? result
)

Implementation

@override
void sendToFrontend(int? id, JSONEncodable? result) {
  // For the unified service, send directly through the service
  if (devtoolsService is ChromeDevToolsService) {
    final resultMap = result?.toJson() ?? <String, dynamic>{};
    // Cast the Map to ensure it's Map<String, dynamic>
    ChromeDevToolsService.unifiedService
        .sendMethodResult(id ?? 0, Map<String, dynamic>.from(resultMap));
  }
}