static Future repeat(int times, Function() action) async { for (var i = 1; i <= times; i++) { await action(); } }