Isar Database, Caching & Offline-First Patterns
@collection annotation with Id fielddata/local/ directory of the relevant featuredart run build_runner build --delete-conflicting-outputs after modifying collections@Index annotations for fields queried frequently@enumerated for enum fieldsLinks and Backlinks for relationships between collectionsput, get, delete, watch callswatchLazy() or watch() to stream changes to the UI via BLoCStream<List<DomainModel>>close() methodflutter_secure_storage for sensitive key-value data (tokens, encryption keys)SharedPreferences ONLY for non-sensitive user preferences (theme, locale, onboarding flags)SharedPreferences or plain Isar