美文网首页
2023-11-17

2023-11-17

作者: aofeilin | 来源:发表于2023-11-16 16:05 被阅读0次

static Timer timer;

static debounce({
durationTime = 1000,
Function executeHandler,
}) {
timer?.cancel();
timer = new Timer(Duration(milliseconds: durationTime), () {
executeHandler?.call();
timer = null;
});
}

相关文章

  • 2023-11-17

    2023.11.16今日感悟:一路上,高峰和低谷交错,有顺境,也会有逆境。无论处于何时何地,没有人可以代替你经历所...

  • 2023-11-17

网友评论

      本文标题:2023-11-17

      本文链接:https://www.haomeiwen.com/subject/oozewdtx.html