call static method

dynamic call({
  1. required void action(),
  2. int? milliseconds,
})

Implementation

static call({required void Function() action, int? milliseconds}) {
  if (null != _timer) {
    _timer?.cancel();
    _timer = null;
  }
  _timer = Timer(Duration(milliseconds: milliseconds ?? 700), action);
}