global function

void global (String selector, String markup)

Inserts a CSS rule with the given selector and declarations markup.

void main() {
  global(
    'html, body',
    'padding: 0;',
  );
}

This is just the same as the following code in .css file.

html, body {
  padding: 0;
}

Implementation

void global(String selector, String markup) {
  parseAndInsert(selector, markup);
}