runCustom<T> method
Null safety
A generic callback that runs on a custom basis set by the user/developer
by referencing a period duration
Implementation
static Future<T?> runCustom<T>(
String key, {
required T? Function() callback,
T? Function()? fallback,
required Duration duration,
}) {
return OnceRunner.run(
key: key,
duration: duration.inMilliseconds,
callback: callback,
fallback: fallback,
);
}