of static method
Derives semantic colors from the ambient ThemeData.
Uses the Material 3 tonal palettes where available, so values stay legible in both light and dark mode and follow dynamic color.
Implementation
static PrismColors of(BuildContext context) =>
resolve(Theme.of(context).colorScheme, Theme.of(context).brightness);