подправил лаб 2

This commit is contained in:
ujijrujijr 2024-10-03 14:09:43 +04:00
parent 83178515c5
commit e5b3c53355

View File

@ -114,7 +114,7 @@ class Game extends Object {
var rand = Random();
int time = rand.nextInt(10000) + 100;
//асинхронность (Future), анонимная функция (Anonymous function)
Future.delayed(
await Future.delayed(
Duration(milliseconds: time), () => print("Игра $name загружена"));
}
}