Session class abstract
Constructors
- Session({required SessionAdapter adapter, required Info info})
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
Returns the session identifier.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → Future< void> - Destroys the session.
-
get(
String key) → Future< String?> -
Returns a stored value for the given
key
. -
has(
String key) → Future< bool> -
Returns
true
if the session contains a value for the givenkey
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → Future< void> -
Removes the value for the given
key
. -
renew(
) → Future< void> - Renew the session.
-
set(
String key, String value) → Future< void> -
Stores the given
value
for the givenkey
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited