sendToFrontend method
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));
}
}