classes property

Map<String, String> classes
final

Lookup map from author class names (e.g. 'title') to generated scoped class names (e.g. 'card_title__a1b2c3d').

Populated during compilation for every local class selector found in rawCss. Author class names wrapped in :global(...) are excluded from this map. This map is unmodifiable.

final styles = scopedCss('.title { font-size: 16px; }', name: 'card');
print(styles.classes['title']); // 'card_title__a1b2c3d'

Implementation

final Map<String, String> classes;