repository_kit 0.1.1 copy "repository_kit: ^0.1.1" to clipboard
repository_kit: ^0.1.1 copied to clipboard

A pure Dart toolkit for implementing clean, offline-first repositories by owning cache-vs-remote strategy decisions.

0.1.1 #

  • RKitRepository is now declared as abstract mixin class. It can be used with extends (unchanged from 0.1.0) or with with when the consuming class already has a base class. No breaking changes.

0.1.0 #

Initial release.

  • RKitRepository<ResultType, RemoteType> — abstract base class with a two-shot watch() stream engine.
  • RKitState<T> — sealed state hierarchy with four subtypes: RKitLoading, RKitCache, RKitSuccess, RKitFailure.
  • RKitCachePolicy — controls when the remote fetch is performed. Supports always, ifEmpty, never, and staleIf (closure-based dynamic cache freshness check).
  • RKitRetryPolicy — controls retry behaviour on request failure. Supports none and exponential backoff.
  • RKitException — exception type representing infrastructure failures, wrapping the underlying error and stacktrace.
0
likes
0
points
18
downloads

Publisher

verified publishershakyapurna.com.np

Weekly Downloads

A pure Dart toolkit for implementing clean, offline-first repositories by owning cache-vs-remote strategy decisions.

Repository (GitHub)
View/report issues

Topics

#repository #architecture #offline-first #cache #stream

License

unknown (license)

More

Packages that depend on repository_kit