ThemeableState class abstract
Base interface for all component states in the workbench.
All component state classes (ButtonState, ToggleState, etc.) must implement this interface to enable:
- Centralized theme application across all components
- Reset to defaults functionality
- Tracking of modified properties for override detection
This interface is the foundation of the Component Registry pattern, allowing main.dart to manage all 55+ components through a single unified API instead of 55 separate if-statements.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyTheme(
GeneratedPalette palette) → void - Apply colors from a GeneratedPalette to this component's state.
-
getModifiedProperties(
) → Set< String> - Get the set of property names that have been modified from defaults.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetToDefaults(
) → void - Reset all properties to their default values.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited