constants/shared_prefrence_storage library
Classes
- A utility class to manage token storage using SharedPreferences.
Functions
-
getBrowserId(
) → Future< String?> - Retrieves the stored browserId from SharedPreferences.
-
getToken(
) → Future< Map< String, dynamic> ?> - Retrieves the stored token from SharedPreferences.
-
removeBrowserId(
String id) → Future< void> - Removes the stored browserId from SharedPreferences.
-
removeToken(
) → Future< void> - Removes the stored authentication token from SharedPreferences.
-
setBrowserId(
String id) → Future< void> - Stores the given browserId data in SharedPreferences.
-
setToken(
Map< String, dynamic> map) → Future<void> - Stores the given token data in SharedPreferences.