run method

dynamic run(
  1. VoidCallback action, {
  2. Duration? delay,
})

run the function

Implementation

run(VoidCallback action, {Duration? delay}) {
  _timer?.cancel();
  _timer = Timer(delay ?? this.delay, action);
}