ScopedCss constructor

ScopedCss(
  1. String rawCss, {
  2. String? name,
})

Creates a ScopedCss instance by compiling rawCss with an optional component name.

Factory constructor forwarding directly to ScopedCss.compile.

final styles = ScopedCss('.container { width: 100%; }', name: 'layout');

Implementation

factory ScopedCss(String rawCss, {String? name}) = ScopedCss.compile;