resetComponentSpecificProperties method

  1. @override
void resetComponentSpecificProperties()
override

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

Implementation

@override
void resetComponentSpecificProperties() {
  size = 120.0;
  iconSize = 32.0;
  labelFontSize = 14.0;
  iconLabelSpacing = 12.0;
  label = 'Action';
  icon = Icons.touch_app;
  fontWeight = FontWeight.w600;
  borderRadius = RadiusTokens.lg;

  // Reset label colors
  restLabelColorLight = const Color(0xFF1f2937);
  restLabelColorDark = const Color(0xFFf9fafb);
  hoverLabelColorLight = const Color(0xFF1f2937);
  hoverLabelColorDark = const Color(0xFFf9fafb);
  pressedLabelColorLight = const Color(0xFF1f2937);
  pressedLabelColorDark = const Color(0xFFf9fafb);
  disabledLabelColorLight = const Color(0xFF9ca3af);
  disabledLabelColorDark = const Color(0xFF6b7280);
}