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