changed bgm getter to one-line fat arrow function

This commit is contained in:
Japa Alekhin Llemos
2019-10-01 07:38:40 +08:00
parent 01d193d8d3
commit 9c76514eef

View File

@ -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();