cooky library

Functions

formatDate(DateTime date) String
Manually sets the weekday and month because the 'en_US' locale might not be initialized.
get(String key) String?
Get the value of the cookie with name key.
remove(String key, {String? path, String? domain, bool? secure}) bool
Returns true if the key was found and the value removed. Returns false if the key was not found.
set(String key, String value, {DateTime? expires, Duration? maxAge, String? path, String? domain, bool? secure}) → void
Set a cookie with name key and value.