CookieService class
================= Cookie Service =================
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
delete(
String name, {String path = '/'}) → void - Delete a cookie
-
get(
String name) → String? - Get a cookie
-
init(
Request request, Response response) → void - Initialize per request
-
set(
String name, String value, {bool httpOnly = true, bool secure = false, String path = '/', Duration? maxAge, DateTime? expires, String sameSite = 'Lax'}) → void - Set a cookie