PrismTokenContext extension

Convenience access to PrismTokens straight from a BuildContext.

Padding(padding: EdgeInsets.all(context.prismTokens.spaceMd), child: …)
on

Properties

prismColors → PrismColors

Available on BuildContext, provided by the PrismTokenContext extension

The semantic Prism colors for the current ColorScheme.
no setter
prismTokens → PrismTokens

Available on BuildContext, provided by the PrismTokenContext extension

The nearest PrismTokens, or PrismTokens.fallback when none is registered.
no setter