BloomStyleResolver class

High-performance CSS and utility class style resolver for native rendering.

Parses Tailwind-like utility tokens (e.g. 'flex flex-row items-center gap-4 bg-zinc-900 text-white rounded-lg') and inline CSS strings into a strongly typed BloomComputedStyle in sub-millisecond time.

Example:

final style = BloomStyleResolver.resolve(
  'p-4 bg-indigo-600 text-white rounded-xl font-bold',
  inlineStyle: 'width: 100%;',
);

Constructors

BloomStyleResolver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

resolve(String? classNames, {String? inlineStyle}) BloomComputedStyle
Resolves classNames and optional inlineStyle string into a BloomComputedStyle.