EventxxRepeat_c constructor

EventxxRepeat_c({
  1. int repeatLimitNum = 2,
  2. required Duration duration,
  3. required Future<void> onListen(),
})

重复时触发

  • 仅当一段时间duration内重复通知多次达到repeatLimitNum时才会触发执行onListen

Implementation

EventxxRepeat_c({
  this.repeatLimitNum = 2,
  required this.duration,
  required this.onListen,
});