getComponentSpecificModifiedProperties method

  1. @override
Set<String> getComponentSpecificModifiedProperties()
override

Get set of component-specific modified properties. Called by getModifiedProperties() to include custom property tracking.

Implementation

@override
Set<String> getComponentSpecificModifiedProperties() {
  final modified = <String>{};

  if (labelText != 'Label') modified.add('labelText');
  if (hintText != 'Enter text...') modified.add('hintText');
  if (placeholderText != 'Placeholder') modified.add('placeholderText');
  if (textSize != 16.0) modified.add('textSize');
  if (labelSize != 14.0) modified.add('labelSize');
  if (fontWeight != FontWeight.w400) modified.add('fontWeight');
  if (prefixIcon != null) modified.add('prefixIcon');
  if (suffixIcon != null) modified.add('suffixIcon');
  if (iconSize != 20.0) modified.add('iconSize');

  return modified;
}