addSessionProperty method

  1. @override
void addSessionProperty(
  1. String key,
  2. String value, {
  3. bool permanent = false,
})
override

Annotates the session with a property defined by a key and value.

The key must be unique within session properties. There is a limit of 10 properties per session. If the property is permanent, it will be added to all future sessions on this device. Otherwise, the property will just be added to the current session.

Implementation

@override
void addSessionProperty(String key, String value, {bool permanent = false}) {
  _runCatching(
    'addSessionProperty',
    () => _platform.addSessionProperty(key, value, permanent: permanent),
  );
}