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.

Implementation

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