remove function
Returns true
if the key was found and the value removed.
Returns false
if the key was not found.
Implementation
bool remove(String key, {String? path, String? domain, bool? secure}) {
if (get(key) != null) {
set(
key,
'',
expires: DateTime.fromMillisecondsSinceEpoch(0),
path: path,
domain: domain,
secure: secure,
);
return true;
}
return false;
}