once 1.4.1 once: ^1.4.1 copied to clipboard
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 theOnce
orOnceWidget
data for a specifickey
.clearAll
removes all theOnce
andOnceWidget
data.
-
Add debug parameters that only works in debug mode
debugCallback
used to debug thecallback
function.debugFallback
used to debug thefallback
function.
-
Add prefix to the
key
to make it unique No changes required.
1.3.0 #
- Add
BuildContext
to thebuilder
andfallback
ofWidgetOnce
1.2.1 #
- ReadMe.md Update
1.2.0 #
- Add
WidgetOnce
that returnWidget
- 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.