HiveStorageService class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
clearMergeProfileIds(
) → Future< void> -
containsKey(
String key) → Future< bool> -
dispose(
) → Future< void> - Close all boxes and cleanup
-
getAllAnalyticsData(
) → Future< Map< String, dynamic> > -
getAllEngagementData(
) → Future< Map< String, dynamic> > -
getAllSettingsData(
) → Future< Map< String, dynamic> > -
getAllUserData(
) → Future< Map< String, dynamic> > -
getBool(
String key) → Future< bool?> -
getCartData(
) → Future< String?> -
getDeviceId(
) → Future< String?> -
getInt(
String key) → Future< int?> -
getLastMessageFetch(
) → Future< int?> -
getMergeProfileIds(
) → Future< List< String> ?> -
getPendingEngagementEvents(
) → Future< List< String> ?> -
getPendingMessageEvents(
) → Future< List< String> ?> -
getProfileId(
) → Future< String?> -
getSessionId(
) → Future< String?> -
getSessionTimestamp(
) → Future< int?> -
getString(
String key) → Future< String?> -
getStringList(
String key) → Future< List< String> ?> -
getWishlistData(
) → Future< List< String> ?> -
initialize(
{String? dir}) → Future< void> - Initialize all storage boxes
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → Future< void> -
setBool(
String key, bool value) → Future< void> -
setCartData(
String cartJson) → Future< void> -
setDeviceId(
String deviceId) → Future< void> -
setInt(
String key, int value) → Future< void> -
setLastMessageFetch(
int timestamp) → Future< void> -
setMergeProfileIds(
List< String> mergeProfileIds) → Future<void> -
setPendingEngagementEvents(
List< String> events) → Future<void> -
setPendingMessageEvents(
List< String> events) → Future<void> -
setProfileId(
String profileId) → Future< void> -
setSessionId(
String sessionId) → Future< void> -
setSessionTimestamp(
int timestamp) → Future< void> -
setString(
String key, String value) → Future< void> -
setStringList(
String key, List< String> value) → Future<void> -
setWishlistData(
List< String> wishlistJson) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → HiveStorageService
-
no setter
Constants
- analyticsBox → const String
- cartDataKey → const String
- deviceIdKey → const String
- engagementBox → const String
- lastMessageFetchKey → const String
- mergeProfileIdsKey → const String
- pendingEngagementEventsKey → const String
- pendingMessageEventsKey → const String
- profileIdKey → const String
- sessionIdKey → const String
- sessionTimestampKey → const String
- settingsBox → const String
- userBox → const String
- wishlistDataKey → const String