shared_preferences_plus_linux

The Linux 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_linux to safely retrieve XDG base directories.
  • Built strictly in Dart (via FFI through path_provider), removing the need for compiling C++ plugins.
  • Supports named containers through SharedPreferencesPlusOptions for isolated namespaces.
  • Supports retrieving all preferences with the getAll method.