call method

String call(
  1. String className
)

Functional lookup shorthand — equivalent to this[className].

Allows calling the ScopedCss instance directly as a function for cleaner markup syntax.

final cls = styles('card');
final titleCls = styles('title');

Implementation

String call(String className) => classes[className] ?? className;