LocalPreferences class final

Manage cache with shared package

Inheritance

Constructors

LocalPreferences()

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

getUserRequestDataOnString(String key) Future<String?>
The getUserRequestDataOnString method is used to retrieve user request data from local storage as a string. It takes a key parameter, which is used to identify the specific data entry to retrieve. The method returns a Future<String?>, which represents the retrieved data as a string. If the data is not found or an error occurs, it returns null.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeUserRequestCache(String key) Future<bool>
The removeUserRequestCache method is used to remove all user request data from local storage. It takes a key parameter, which is used to identify the specific data entry to remove. The method returns a Future<bool>, which indicates whether the removal operation was successful (true) or not (false).
override
removeUserRequestSingleCache(String key) Future<bool>
The removeUserRequestSingleCache method is used to remove a single data entry from local storage. It takes a key parameter, which is used to identify the specific data entry to remove. The method returns a Future<bool>, which indicates whether the removal operation was successful (true) or not (false).
override
toString() String
A string representation of this object.
inherited
writeUserRequestDataWithTime(String key, Object model, Duration? time) Future<bool>
The writeUserRequestDataWithTime method is used to write user request data to local storage with an optional expiration time. It takes three parameters: key, model, and time.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited