resetComponentSpecificProperties method

  1. @override
void resetComponentSpecificProperties()
override

Reset component-specific properties to defaults. Called by resetToDefaults() after resetting common properties.

Implementation

@override
void resetComponentSpecificProperties() {
  width = 200.0;
  height = 56.0;
  paddingH = 16.0;
  paddingV = 12.0;
  borderRadius = RadiusTokens.md;
  iconSize = 24.0;

  fontSize = 16.0;
  items = ['Option 1', 'Option 2', 'Option 3'];
  selectedValue = null;
  hintText = 'Select an option';

  // Reset hint colors
  restHintColorLight = const Color(0xFF9ca3af);
  restHintColorDark = const Color(0xFF6b7280);
  hoverHintColorLight = const Color(0xFF6b7280);
  hoverHintColorDark = const Color(0xFF9ca3af);
  pressedHintColorLight = const Color(0xFF6b7280);
  pressedHintColorDark = const Color(0xFFd1d5db);
  disabledHintColorLight = const Color(0xFFd1d5db);
  disabledHintColorDark = const Color(0xFF4b5563);

  // Reset dropdown menu colors
  restDropdownBgColorLight = const Color(0xFFffffff);
  restDropdownItemColorLight = const Color(0xFF111827);
  restDropdownBgColorDark = const Color(0xFF374151);
  restDropdownItemColorDark = const Color(0xFFf3f4f6);
}