maybe property
ConsentStateService?
get
maybe
Gets the instance if already registered (safe to call from call sites that may run before/without this service registered, e.g. widget tests).
Implementation
static ConsentStateService? get maybe =>
Get.isRegistered<ConsentStateService>()
? Get.find<ConsentStateService>()
: null;