Once class Null safety

Constructors

Once()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

runCustom<T>(String key, {required T? callback(), T? fallback()?, required Duration duration}) Future<T?>
A generic callback that runs on a custom basis set by the user/developer by referencing a period duration
runDaily<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs on a daily basis
runEvery12Hours<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs every 12 hours
runHourly<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs on an hourly basis
runMonthly<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs on an monthly basis
runOnce<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
runOnEveryNewVersion<T>({required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs each time the app version changes
runOnNewMonth<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs at the beginning of each month
runWeekly<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>
A generic callback that runs on an weekly basis
runYearly<T>(String key, {required T? callback(), T? fallback()?}) Future<T?>