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

@ -5,12 +5,13 @@ import 'package:flame/gestures.dart';
class TimerGame extends Game with TapDetector {
final TextConfig textConfig = TextConfig(color: const Color(0xFFFFFFFF));
Timer countdown;
Timer interval;
late Timer countdown;
late Timer interval;
int elapsedSecs = 0;
TimerGame() {
@override
Future<void> onLoad() async {
countdown = Timer(2);
interval = Timer(
1,