PatchbayRevealBridge constructor

PatchbayRevealBridge({
  1. required PatchbayGateEvaluator gates,
  2. required PatchbaySemanticsBridge semantics,
  3. required PatchbayFrameObserver frames,
  4. PatchbayRevealPolicy? policy,
  5. bool isAppResumed()?,
  6. PatchbayLifecycleStateReader? lifecycleState,
  7. String newRequestId()?,
})

Implementation

PatchbayRevealBridge({
  required this._gates,
  required this._semantics,
  required this._frames,
  this._policy,
  bool Function()? isAppResumed,
  PatchbayLifecycleStateReader? lifecycleState,
  String Function()? newRequestId,
}) : _isAppResumed =
         isAppResumed ??
         (() =>
             WidgetsBinding.instance.lifecycleState ==
             AppLifecycleState.resumed),
     _lifecycleState = patchbayLifecycleReaderFor(
       isAppResumed: isAppResumed,
       lifecycleState: lifecycleState,
     ),
     _newRequestId = newRequestId ?? PatchbaySemanticsBridge.defaultRequestId;