PatchbayRevealBridge constructor
PatchbayRevealBridge({
- required PatchbayGateEvaluator gates,
- required PatchbaySemanticsBridge semantics,
- required PatchbayFrameObserver frames,
- PatchbayRevealPolicy? policy,
- bool isAppResumed()?,
- PatchbayLifecycleStateReader? lifecycleState,
- 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;