run method

void run(
  1. FutureOr<void> f()
)

Implementation

void run(FutureOr<void> Function() f) {
  timer?.cancel();
  timer = Timer(duration, f);
}