setPageExtraProperties method

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

Sets page-specific properties that will be passed to all units on this page.

Implementation

void setPageExtraProperties(HashMap<String, String> extraProperties) {
  if (extraProperties.isEmpty) return;

  TBLLogger.log(
      '$TAG | setPageExtraProperties | pageId: $_uniquePageId, properties: $extraProperties');

  bool shouldNotifyUnits = TBLPropertiesUtils.updateExtraProperties(
      extraProperties, _pageExtraProperties, TBLExtraPropertyLevel.page);

  if (shouldNotifyUnits) {
    _notifyUnitsWithProperties();
  }
}