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

PlatformAndroidiOS
unlisted

A small helper that lets you load your data async or access the current value directly. Especially useful when implementing caching.

This package is especially useful when implementing a caching mechanism. I personally use it in some of my packages as a way to get the current value directly whilst also registering an action for a second reload for example, when the reloader function is done.

Features #

  • Provide current value and reloader function at the same time
  • Treat errors in reloader function

Getting started #

Check out the example - once there is one - to see how to use this thing.

Usage #

This is something I defer to when I want to supply an example. For now you could check out the easy_calendar package. I use the easy_tuple package there.

Additional information #

I mainly developed this package for me, but if you want me to add modifications that would greatly benefit you, feel free to open a MR and I will have a look!

0
likes
140
points
58
downloads

Publisher

verified publisherjb.software

Weekly Downloads

A small helper that lets you load your data async or access the current value directly. Especially useful when implementing caching.

Repository (GitLab)

Topics

#tuple

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on easy_tuple