resolve static method
Resolves classNames and optional inlineStyle string into a BloomComputedStyle.
Example:
final computed = BloomStyleResolver.resolve('flex items-center justify-between p-4');
Implementation
static BloomComputedStyle resolve(String? classNames, {String? inlineStyle}) {
final s = BloomComputedStyle();
if (classNames == null || classNames.trim().isEmpty) {
_applyInline(s, inlineStyle);
return s;
}
final tokens = classNames.split(RegExp(r'\s+'));
for (final token in tokens) {
_parseToken(token.trim(), s);
}
_applyInline(s, inlineStyle);
return s;
}