maybe property

Gets the instance if already registered (safe to call from game/widget tests).

Implementation

static GameSessionController? get maybe =>
    Get.isRegistered<GameSessionController>()
    ? Get.find<GameSessionController>()
    : null;