debugClearComponentStyles function

void debugClearComponentStyles()

Clears all component styles from the DOM.

This should only be called in development mode, typically to reset <style> tags in the DOM between DDC hot restarts or hermetic test cases.


void debugClearComponentStyles() {
  if (!isDevMode) {
    throw StateError(
      'This function should only be used in development mode.\n'
      'See "debugClearComponentStyles()" documentation for details.',