From 29f100a4604504f3fe1b57de1882a1e5a0d5cde1 Mon Sep 17 00:00:00 2001 From: Luan Nico Date: Mon, 14 Oct 2019 18:58:52 -0400 Subject: [PATCH] removing unnecessary types in example --- doc/examples/debug/lib/main.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/examples/debug/lib/main.dart b/doc/examples/debug/lib/main.dart index 607405828..0d5e536f2 100644 --- a/doc/examples/debug/lib/main.dart +++ b/doc/examples/debug/lib/main.dart @@ -46,8 +46,7 @@ class AndroidComponent extends SvgComponent with Resizable { } class MyGame extends BaseGame { - final TextConfig fpsTextConfig = - const TextConfig(color: const Color(0xFFFFFFFF)); + final fpsTextConfig = const TextConfig(color: const Color(0xFFFFFFFF)); MyGame() { _start(); @@ -57,16 +56,16 @@ class MyGame extends BaseGame { bool debugMode() => true; void _start() { - final AndroidComponent android = AndroidComponent(); + final android = AndroidComponent(); android.x = 100; android.y = 400; - final AndroidComponent android2 = AndroidComponent(); + final android2 = AndroidComponent(); android2.x = 100; android2.y = 400; android2.yDirection = -1; - final AndroidComponent android3 = AndroidComponent(); + final android3 = AndroidComponent(); android3.x = 100; android3.y = 400; android3.xDirection = -1;