repeat method
重复执行任务
Implementation
void repeat(Future<void> Function() callback) async {
for (int i = 0; i < this; i++) {
await callback();
}
}
重复执行任务
void repeat(Future<void> Function() callback) async {
for (int i = 0; i < this; i++) {
await callback();
}
}