getAllCssStyleSheet function
Returns all current CssStyleSheet.
Implementation
List<CssStyleSheet> getAllCssStyleSheet() {
var styles = querySelectorAll('style').cast<StyleElement>();
var links = querySelectorAll('link').cast<LinkElement>();
var sheets = [
...styles.map((s) => s.sheet).whereType<CssStyleSheet>(),
...links.map((s) => s.sheet).whereType<CssStyleSheet>(),
];
return sheets;
}