of static method
- BuildContext context
Reads the nearest tokens, falling back to PrismTokens.fallback.
Never returns null — components can call this without null checks.
Implementation
static PrismTokens of(BuildContext context) =>
Theme.of(context).extension<PrismTokens>() ?? fallback;