PatchbayKeepAwakeBridge constructor

PatchbayKeepAwakeBridge({
  1. required PatchbayGateEvaluator gates,
  2. required bool isAppResumed(),
  3. required PatchbayLifecycleStateReader lifecycleState,
  4. PatchbayKeepAwakeDelegate? delegate,
  5. Set<String> gateIds = const <String>{},
  6. 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;