TGSession class
TGFramework's Session implementation
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
-
addListener(
TGSessionListener? listener) → void - Add listener
-
createdAt(
) → DateTime? - TGSession created at
-
get(
String key) → dynamic - Gets value for given key if not expired
-
invalidate(
) → void - Invalidate session
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → dynamic - Removes value for given key
-
removeAllListeners(
) → void - Remove all listeners
-
removeListener(
TGSessionListener? listener) → void - Remove listener
-
set(
String key, dynamic value, {Duration? validFor}) → void - Sets value for given key with Duration
-
toString(
) → String -
A string representation of this object.
inherited
-
validSince(
) → Duration - Number of milliseconds passed since valid TGSession has been created
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → TGSession - Gets TGSession's instance reference