подправил лаб 2
This commit is contained in:
parent
83178515c5
commit
e5b3c53355
@ -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 загружена"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user