mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
changed bgm getter to one-line fat arrow function
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user