retryFuture static method

dynamic retryFuture(
  1. dynamic future,
  2. dynamic delay
)

Implementation

static retryFuture(future, delay) {
  Future.delayed(Duration(milliseconds: delay), () {
    future();
  });
}