setSessionData method

dynamic setSessionData(
  1. Map<String, String> sessionData
)

Implementation

setSessionData(Map<String, String> sessionData) {
  if (sessionData.isEmpty) return;

  sessionData.forEach(
    (key, value) => appendScript(
        'window.\$crisp.push(["set", "session:data", ["$key", "$value"]]);'),
  );
}