Options class
Constructors
Properties
- domain → String?
-
The cookie domain (optional)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpOnly → bool?
-
Whether this cookie is marked HttpOnly
final
- maxAge → int?
-
Public getter for maxAge
no setter
- partitioned → bool?
-
Whether this cookie is partitioned
final
- path → String?
-
The cookie path (defaults to "/")
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameSite → SameSite?
-
Cookie SameSite policy.
final
- secure → bool?
-
Whether this cookie requires HTTPS
final
Methods
-
clone(
) → Options - Creates a copy of Options with all fields
-
copyWith(
{String? path, String? domain, int? maxAge, bool? secure, bool? httpOnly, bool? partitioned, SameSite? sameSite}) → Options - Creates a new Options instance with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setMaxAge(
int? value) → void - Updates the maxAge value
-
toJson(
) → Map< String, dynamic> - Converts Options to JSON representation
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited