function.helper library

Functions

debounce(Function func, Duration delay) Function
noop() → void
A no-operation function that does nothing.
retry<T>({required Future<T> task(), int maxAttempts = 3, bool validate(T result)?, Duration initialDelay = const Duration(seconds: 1), Duration? maxDelay, Duration? taskTimeout}) Future<T>
Retries a given asynchronous function task for a specified number of maxAttempts with an exponential backoff delay.
throttle(Function func, Duration delay) Function