SharedPreferencesManager class
SharedPreferencesManager handles storage of chucker data on user's disk
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
-
addApiResponse(
ApiResponse apiResponse) → Future< void> - addApiResponse sets an API response to local disk
-
deleteAnApi(
String dateTime) → Future< void> - deleteAnApi deletes an api record from local disk
-
deleteSelected(
List< String> dateTimes) → Future<void> - deleteAnApi deletes an api record from local disk
-
getAllApiResponses(
) → Future< List< ApiResponse> > - getAllApiResponses returns all api responses saved in local disk
-
getSettings(
) → Future< Settings> - getSettings gets the chucker settings from user's disk
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSettings(
Settings settings) → Future< void> - setSettings saves the chucker settings in user's disk
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → SharedPreferencesManager - getInstance returns the singleton object of SharedPreferencesManager