Session class
Session engine. Mirrors createSession from @refraction-ui/analytics.
Constructors
- Session(SessionConfig? config, {int now()?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
end(
) → void - End the current session (next id() mints a fresh one).
-
id(
[String? campaign]) → String - Get the current session id, rotating if expired.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
props(
) → AnalyticsProperties? - Read session-scoped properties (null when none).
-
set(
AnalyticsProperties props) → void - Attach/merge session-scoped properties.
-
start(
[String? campaign]) → String - Force a brand-new session.
-
toString(
) → String -
A string representation of this object.
inherited
-
touch(
[String? campaign]) → String - Touch activity so the inactivity window slides forward.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited