setAttributes method

void setAttributes(
  1. Map<String, Object?> attributes
)

Custom targeting attributes sent with every fetch (e.g. governorate, plan, segment). These feed "Custom attribute" conditions on the server. Merges with existing attributes; call clearAttributes to reset. Mirrors Firebase custom signals. Values must be string/number/bool.

Implementation

void setAttributes(Map<String, Object?> attributes) =>
    _attributes.addAll(attributes);