PatchbayCaptureBridge class final

Captures only Flutter-composited repaint boundaries and stores PNG bytes in the shared bounded blob store.

Constructors

PatchbayCaptureBridge({required PatchbayGateEvaluator gates, required PatchbayUiRegistry registry, required PatchbayFrameObserver frames, required PatchbayArtifactService artifacts, Set<String> gateIds = const <String>{}, PatchbayRootController? root, bool isAppResumed()?, PatchbayLifecycleStateReader? lifecycleState, PatchbayCaptureEncoder? encoder, PatchbayCaptureDecoder? decoder, int maxPixels = 16 * 1024 * 1024, int maxBytes = 8 * 1024 * 1024, double maxPixelRatio = 3, Duration defaultTimeout = const Duration(seconds: 5)})

Properties

defaultTimeout Duration
final
gateIds Set<String>
no setter
hashCode int
The hash code for this object.
no setterinherited
maxBytes int
final
maxPixelRatio double
final
maxPixels int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

capture(PatchbayCaptureRequestWire request, {required String requestId}) Future<PatchbayInvocation>
diff(PatchbayCaptureDiffRequestWire request, {required String requestId}) Future<PatchbayInvocation>
Compares two capture artifacts after decoding both to RGBA8888.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

needsPaintForMode(RenderRepaintBoundary boundary, {required bool isDebugBuild}) bool
Whether the boundary still owes a paint, to the extent the build mode can answer that at all.

Constants

maxAfterFrames → const int