mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
Migrate examples to null-safety (#707)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user