syncThemeToDom function

void syncThemeToDom({
  1. String selector = ':root',
  2. String prefix = 'lark',
})

Applies current theme variables to the DOM when running on web.

Implementation

void syncThemeToDom({String selector = ':root', String prefix = 'lark'}) {
  dom.applyThemeVariables(_currentTheme.toCssVariables(prefix: prefix), selector: selector);
}