dumpResponseToFile function

void dumpResponseToFile({
  1. required String html,
  2. required bool debug,
})

Web platform stub for dumping response to file.

This function is a stub implementation for web platforms where file system access is not available. It does nothing when called, maintaining API compatibility with the IO platform version.

Parameters:

  • html: The HTML content to save (ignored on web)
  • debug: Whether debug mode is enabled (ignored on web)

Note: Web platforms cannot save files to the local file system due to browser security restrictions. Consider using browser storage APIs (localStorage, sessionStorage) for web-specific caching needs.

Implementation

void dumpResponseToFile({required String html, required bool debug}) {
  /// No file operations available on web platform
  /// This function exists for API compatibility only
}