setUnitExtraProps method

void setUnitExtraProps(
  1. HashMap<String, String> extraProperties
)

Set extra properties for this specific unit. Stores locally with unit-level tag (always overwrites page/global)

Implementation

void setUnitExtraProps(HashMap<String, String> extraProperties) async {
  // Use utility method to handle property storage
  final updatedKeys = TBLPropertiesUtils.setUnitExtraProps(
      extraProperties, _unitExtraProperties, TAG, uniqueUnitId);

  final hasRecognizedProperties =
      updatedKeys.any((key) => TBLPropertiesUtils.RECOGNIZED_EXTRA_PROPERTIES.contains(key));
  if (hasRecognizedProperties) {
    await _applyUnitRecognizedExtraProperties(updatedKeys);
  }
}