Merge remote-tracking branch 'origin/lab_2' into lab_3

This commit is contained in:
ujijrujijr 2024-10-03 14:10:57 +04:00
commit 600bf3b2cd

View File

@ -161,7 +161,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 загружена"));
}
}