clear method
- CStorageMethod method = CStorageMethod.local,
Clears all data from the identified CStorageMethod.
Implementation
void clear({CStorageMethod method = CStorageMethod.local}) {
if (method == CStorageMethod.local) {
web.window.localStorage.clear();
} else if (method == CStorageMethod.session) {
web.window.sessionStorage.clear();
} else {
web.document.cookie = "";
}
}