hasSessionProperty static method

bool hasSessionProperty(
  1. String key
)

Check if a property exists.

Example:

if (Pulse.hasSessionProperty('userId')) {
  print('User ID is set');
}

Implementation

static bool hasSessionProperty(String key) {
  return _properties.containsKey(key);
}