shared_preferences_plus_windows

The Windows implementation of the shared_preferences_plus plugin.

Usage

This package is endorsed, which means you can simply use shared_preferences_plus normally. This package will be automatically included in your app when you depend on shared_preferences_plus.

dependencies:
  shared_preferences_plus: ^1.0.0

Implementation Details

  • Uses the local file system to store data persistently as JSON files (<container_name>.json).
  • Defers to path_provider_windows to securely resolve the application's support directory (%APPDATA%).
  • Evaluates entirely in Dart using Windows API through FFI, bypassing the need for C++ integration.
  • Supports named containers through SharedPreferencesPlusOptions for isolated namespaces.
  • Supports retrieving all preferences with the getAll method.