addSessionProperty method

  1. @override
void addSessionProperty(
  1. String key,
  2. String value, {
  3. required bool permanent,
})
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, {required bool permanent}) {
  throwIfNotStarted();
  methodChannel.invokeMethod(
    _addSessionPropertyMethodName,
    {
      _keyArgName: key,
      _valueArgName: value,
      _permanentArgName: permanent,
    },
  );
}