SessionAdapter class abstract
- Implementers
Constructors
- SessionAdapter({required Duration expiration})
-
const
Properties
- expiration → Duration
-
The Duration of the session cookie expiration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
can(
String identifier) → Future< bool> - Can a session be expired
-
destroy(
String identifier) → Future< void> - Destroys the session.
-
expiresAt(
String identifier) → Future< DateTime?> - Returns the session expires at.
-
get(
String identifier, String key) → Future< String?> - Returns a session value.
-
has(
String identifier, 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 identifier, String key) → Future< void> - Removes a session value.
-
renew(
String identifier) → Future< void> - renew the session
-
set(
String identifier, String key, String value) → Future< void> - Sets a session value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited