PatchbayKeepAwakeBridge constructor
PatchbayKeepAwakeBridge({
- required PatchbayGateEvaluator gates,
- required bool isAppResumed(),
- required PatchbayLifecycleStateReader lifecycleState,
- PatchbayKeepAwakeDelegate? delegate,
- Set<
String> gateIds = const <String>{}, - String newRequestId()?,
Implementation
PatchbayKeepAwakeBridge({
required this._gates,
required this._isAppResumed,
required this._lifecycleState,
this._delegate,
Set<String> gateIds = const <String>{},
String Function()? newRequestId,
}) : gateIds = Set<String>.unmodifiable(gateIds),
_newRequestId = newRequestId ?? _defaultRequestId;