setSessionProperty static method

Future<void> setSessionProperty(
  1. String key,
  2. String value
)

This method is used for setting properties that will be specific to that session

key is String value is String

eg: setUserProperty('username', 'john')

Implementation

static Future<void> setSessionProperty(String key, String value) async {
  await _channel
      .invokeMethod('setSessionProperty', {"key": key, "value": value});
}