maybe property

Safe to call from a call site that may run before/without this service registered (e.g. widget tests).

Implementation

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