throttle2 function

dynamic throttle2(
  1. Function func, [
  2. String? key
])

Implementation

throttle2(
  Function func, [
  String? key,
]) {
  if (_key != key) {
    func.call();
    _key = key;
  }
}