mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
Fixed rate for changenow.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import 'dart:async';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class Debounce {
|
||||
Debounce(this.duration);
|
||||
|
||||
final Duration duration;
|
||||
Timer _timer;
|
||||
|
||||
void run(VoidCallback action) {
|
||||
_timer?.cancel();
|
||||
_timer = Timer(duration, action);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user