smart_prefs library

Classes

Pref
Base interface for defining type-safe preferences.
Prefs
Core class for managing preferences with local, remote, and volatile storage.
PrefsManager
Manages initialization and configuration of the preference system.
RemotePrefs
Abstract interface for implementing remote preference storage.
TypedValue
Represents a value with its type information for storage.

Enums

PrefsLogLevel
Log levels for preference operations.
PrefType
Storage types for preferences.

Extensions

PrefExtensions on Pref
Extension methods for convenient preference access.

Functions

defaultPrefsLogger(PrefsLogLevel level, String message) → void
Default logger that prints to console.

Typedefs

ConnectivityChecker = Future<bool> Function()
Callback function type for checking network connectivity.
PrefsLogger = void Function(PrefsLogLevel level, String message)
Callback function type for logging preference operations.
RemoteLoadCallback = void Function(bool success, int attempt)
Callback function type for being notified when remote preferences load.