Null-safety (#685)

This commit is contained in:
Luan Nico
2021-03-09 17:45:55 -05:00
committed by GitHub
parent 0855d4e3a5
commit edc54fdc34
121 changed files with 625 additions and 669 deletions

View File

@@ -24,7 +24,7 @@ class MyGame extends BaseGame {
class MyParallaxComponent extends ParallaxComponent with HasGameRef<MyGame> {
@override
Future<void> onLoad() async {
parallax = await gameRef.loadParallax(
parallax = await gameRef!.loadParallax(
[
'bg.png',
'mountain-far.png',