From 9c76514eefea9e1abfd32e7a05e52ced332061e5 Mon Sep 17 00:00:00 2001 From: Japa Alekhin Llemos Date: Tue, 1 Oct 2019 07:38:40 +0800 Subject: [PATCH] changed bgm getter to one-line fat arrow function --- lib/flame.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/flame.dart b/lib/flame.dart index b1c64e261..6b67541f5 100644 --- a/lib/flame.dart +++ b/lib/flame.dart @@ -26,10 +26,7 @@ class Flame { /// Access a shared instance of the [Bgm] class. static Bgm _bgm; - static Bgm get bgm { - _bgm ??= Bgm(); - return _bgm; - } + static Bgm get bgm => _bgm ??= Bgm(); /// Access a shared instance of the [Images] class. static Images images = Images();