theme library
Classes
- CapabilityOverrides
- Type-safe override bag for theme capabilities.
- CapabilityOverridesBuilder
- Builder for CapabilityOverrides.
- HeadlessTheme
- Root capability discovery contract (v1 skeleton).
- HeadlessThemeOverridesScope
- Scoped capability overrides for a subtree.
- HeadlessThemeProvider
- Provides HeadlessTheme to descendant widgets.
- HeadlessThemeWithOverrides
- Headless theme wrapper that overrides specific capabilities.
Functions
-
requireCapability<
T> (HeadlessTheme theme, {required String componentName}) → T - Require a capability from the theme, throwing a standardized error if missing.
Exceptions / Errors
- MissingCapabilityException
- Exception thrown when a required capability is missing from the theme.
- MissingThemeException
- Exception thrown when HeadlessThemeProvider is not found in the widget tree.