PreferencesService class abstract
PreferencesService is an adapter of the regular SharedPreferences providing more organization to the preferences management and preventing misuses
Constructors
- PreferencesService.new(SharedPreferences preferences)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- preferences → SharedPreferences
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> - clear all preferences managers
-
flavorPrefix(
) → String -
getAuthHeaders(
) → FutureOr< Map< String, String> > - You do not call this method by yourself, instead it is used by DioClient to inject authentication headers into your requests that may be stored into the PreferencesService. The implementation of this method should return a map of all headers you may want to add to your request when calling ApiService.withAuth. Values will be appended to the current headers of the request
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited