bloomStyleNonce top-level property

String? bloomStyleNonce
getter/setter pair

Optional Content-Security-Policy (CSP) nonce applied to <style> elements created and injected by the framework.

When non-null, every <style> element injected into document.head (such as StyleNode stylesheets or AnimatedNode @keyframes rules) receives a nonce="$bloomStyleNonce" attribute. Defaults to null.

void main() {
  bloomStyleNonce = 'rAnd0mN0nc3';
  mount(App(), '#app');
}

Implementation

String? bloomStyleNonce;