applyTheme method
Apply colors from a GeneratedPalette to this component's state.
This method is called when the theme changes or when a new palette is generated. It should update all color properties based on the palette's values.
Implementation should use ThemeColorMapper.forComponent() for component-specific color resolution.
Implementation
@override
void applyTheme(GeneratedPalette palette) {
// Call base implementation to set common colors and palette
super.applyTheme(palette);
final colors = ThemeColorMapper.forComponent(palette, componentName);
// Rest state - check uses accent color
restCheckColorLight = colors.accentColorLight;
restCheckColorDark = colors.accentColorDark;
// Hover state
hoverCheckColorLight = colors.accentColorLight;
hoverCheckColorDark = colors.accentColorDark;
// Pressed state
pressedCheckColorLight = colors.accentColorLight;
pressedCheckColorDark = colors.accentColorDark;
// Disabled state
disabledCheckColorLight = colors.disabledIconColorLight;
disabledCheckColorDark = colors.disabledIconColorDark;
}