shared_prefs_typed_annotations 1.0.0 copy "shared_prefs_typed_annotations: ^1.0.0" to clipboard
shared_prefs_typed_annotations: ^1.0.0 copied to clipboard

Annotations for generating type-safe SharedPreferences code (shared_prefs_typed)

Changelog #

All notable changes to this package will be documented in this file.

1.0.0 #

Breaking #

  • @TypedPrefs(async: true) removed — the deprecated async parameter has been deleted. Replace with @TypedPrefs(mode: PrefsMode.async).

0.7.0 #

New #

  • @PrefKey(String key) — field-level annotation to override the SharedPreferences storage key. Added @Target({TargetKind.field}).
  • @PrefDateTime(DateTimeEncoding encoding) — field-level annotation to specify how a DateTime field is encoded in storage. Added @Target({TargetKind.field}).
  • DateTimeEncoding enum — two variants: millisecondsSinceEpoch (stored as int) and iso8601 (stored as String).
  • generateInterface parameter added to TypedPrefs — when true, the generator also produces an abstract {ClassName}Base interface.

0.6.0 #

  • Added @Target({TargetKind.classType}) to TypedPrefs — misuse on non-class declarations now produces an IDE-level error
  • Added meta as a dependency
  • Improved class-level documentation (documents the _ prefix requirement)

0.5.2 #

  • Fixed supported platforms

0.5.1 #

  • Added example file

0.5.0 #

  • Initial stable release.
  • Provides the @TypedPrefs annotation with the optional async boolean parameter to control the generator's output mode.
1
likes
160
points
241
downloads

Publisher

verified publisherphilippgerber.li

Weekly Downloads

Annotations for generating type-safe SharedPreferences code (shared_prefs_typed)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on shared_prefs_typed_annotations