once 1.6.2 once: ^1.6.2 copied to clipboard
Want to run a piece of code once periodically (Once - Daily - Weekly - Monthly - On new build - On new version - Any period)? We cover your back.
1.6.2 #
- Chore: Updates dependencies
package_info_plus
to^6.0.0
- Chore: Updates minimum Dart SDK to
>=3.3.0
1.6.1 #
- Chore: Update dependencies
package_info_plus
to^5.0.1
1.6.0 #
- Feat: Added runOnEveryNewBuild Function
- Fix:
runOnNewVersion
saves version numbers with non-numerical values and does not sanitize them upon retrieval Issue #24 - Fix: Types Error in
runner.dart
- Chore: Update dependencies & example app
1.5.3 #
- fix
runOnNewVersion
callback even on first run
1.5.2 #
- fix: add
uniqueKey
torunOnNewVersion
to fix runOnEveryNewVersion runs only once even if used in multiple pages - chore: update dependencies
1.5.1 #
- fix:
OnceBuilder.fallback()
is always called at least one time when specified - chore: update dependencies
1.5.0 #
- fix:
runOnce
&runEvery12Hours
fallback wasn't working properly - chore: update dependencies
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.