once 1.4.1 copy "once: ^1.4.1" to clipboard
once: ^1.4.1 copied to clipboard

outdated

Want to run a piece of code once periodically (Once - Daily - Weekly - Monthly - On new version - Any period)? We cover your back.

1.4.1 #

  • fix: clear key was missing the prefix

1.4.0 #

  • Add Functions

    • clear removes the Once or OnceWidget data for a specific key.
    • clearAll removes all the Once and OnceWidget data.
  • Add debug parameters that only works in debug mode

    • debugCallback used to debug the callback function.
    • debugFallback used to debug the fallback function.
  • Add prefix to the key to make it unique No changes required.

1.3.0 #

  • Add BuildContext to the builder and fallback of WidgetOnce

1.2.1 #

  • ReadMe.md Update

1.2.0 #

  • Add WidgetOnce that return Widget
  • Add runOnNewDay method that runs on every new day. The day here means you run the function at 3:00 AM. So, Day means the next 12:00 AM.

1.1.2 #

  • Analyzing

1.1.0 #

  • Fix bugs
  • All periodic functions now are returning a nullable generic typed Future Future<T?>
  • Add fallback in case if that callback future returns null

1.0.0 #

  • initial release.
222
likes
0
pub points
89%
popularity

Publisher

verified publishermosoliman.tech

Want to run a piece of code once periodically (Once - Daily - Weekly - Monthly - On new version - Any period)? We cover your back.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, package_info_plus, shared_preferences

More

Packages that depend on once