import 'package:fluttery/fluttery.dart'; /// providing methods for managing persistent storage of key-value pairs. abstract class Preferences implements Service { /// Stores a string value with the given [key]. Future setString(String key, String value); /// Retrieves the string value associated with the given [key]. Future getString(String key); /// Stores an integer value with the given [key]. Future setInt(String key, int value); /// Retrieves the integer value associated with the given [key]. Future getInt(String key); /// Stores a boolean value with the given [key]. Future setBool(String key, bool value); /// Retrieves the boolean value associated with the given [key]. Future getBool(String key); /// Stores a double value with the given [key]. Future setDouble(String key, double value); /// Retrieves the double value associated with the given [key]. Future getDouble(String key); /// Stores a list of strings with the given [key]. Future setStringList(String key, List value); /// Retrieves the list of strings associated with the given [key]. Future?> getStringList(String key); /// Removes the key-value pair associated with the given [key]. Future remove(String key); /// Clears all key-value pairs in the preferences. Future clear(); }