Migrate examples to null-safety (#707)

This commit is contained in:
Luan Nico
2021-03-24 19:04:33 -04:00
committed by GitHub
parent 98e8515518
commit 640bfea941
34 changed files with 146 additions and 145 deletions

View File

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