From a5d4c4e3938d85b4223a7aabed3e47f5c1a9b957 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 16 Mar 2022 13:18:35 +0000 Subject: [PATCH] feat: changed override to onLoad --- lib/game/components/initial_position.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/game/components/initial_position.dart b/lib/game/components/initial_position.dart index aa4acb46..fef2be5f 100644 --- a/lib/game/components/initial_position.dart +++ b/lib/game/components/initial_position.dart @@ -7,8 +7,8 @@ mixin InitialPosition on BodyComponent { late final Vector2 initialPosition; @override - void onMount() { - super.onMount(); + Future onLoad() async { + await super.onLoad(); assert( body.position == initialPosition, 'Body position is not equal to initial position.',