shared_preferences_plus_foundation

The iOS and macOS 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 Apple's native NSUserDefaults API for persistent key-value storage.
  • Shares a single Darwin source implementation across both iOS and macOS.
  • Communicates with native code via Pigeon for type-safe platform channels.
  • Supports named containers through SharedPreferencesPlusOptions for isolated namespaces.
  • Supports retrieving all preferences with the getAll method.