of static method
Resolves the palette from context. Falls back to dark when no
extension is registered (defensive — should not happen if
BrandATheme.light() / .dark() are used).
Implementation
static DsAppPalette of(BuildContext context) =>
Theme.of(context).extension<DsAppPalette>() ?? DsAppPalette.dark();