import 'package:riverpod_annotation/riverpod_annotation.dart'; /// Riverpod annotation for providers that should persist for the app lifetime. /// /// Use this instead of `@riverpod` when: /// - The provider holds app-level state (theme, auth, config) /// - The provider stores a Ref that must remain valid (API clients with interceptors) /// - Disposing would cause flickering or re-initialization issues /// /// Example: /// ```dart /// @persistentRiverpod /// class ThemeNotifier extends _$ThemeNotifier { ... } /// ``` const persistentRiverpod = Riverpod(keepAlive: true);