PatchbaySemanticsBridge class final

Public-API Flutter Semantics observer and action dispatcher.

A policy is deliberately optional. Without one the tree remains readable, while executable semantics commands stay absent from the host catalog.

Constructors

PatchbaySemanticsBridge({required PatchbayGateEvaluator gates, PatchbaySemanticsActionPolicy? actionPolicy, PatchbayFrameObserver? frames, bool isAppResumed()?, PatchbayLifecycleStateReader? lifecycleState, String newRequestId()?})

Properties

actionsEnabled bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
treeRevision int
本桥发布的语义树版本号的同步读数。
no setter

Methods

dispose() → void
ensureOwner({Duration frameTimeout = const Duration(seconds: 2)}) Future<SemanticsOwner?>
取一个可用于 probe 的 owner。
invoke({required int nodeId, required int generation, required PatchbaySemanticsAction action, String? text, bool inputWasStdin = false, String? requestId}) Future<PatchbayInvocation>
invokeIdentifier({required String identifier, required int generation, required PatchbaySemanticsAction action, String? text, bool inputWasStdin = false, String? requestId}) Future<PatchbayInvocation>
Resolves a stable Semantics identifier and dispatches one public action while preserving the caller's required generation fence.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(SemanticsNode node) PatchbaySemanticsEntry
observeIdentifier(String identifier) Future<PatchbaySemanticsIdentifierObservation?>
Resolves a stable Semantics identifier without using labels or paths.
observeTreeRevision() Future<int?>
snapshot({int maxDepth = 64, int maxNodes = 1000, String? requestId}) Future<PatchbayInvocation>
tapIdentifier({required String identifier, int? expectedGeneration, String? requestId}) Future<PatchbayInvocation>
Resolves a stable Semantics identifier and dispatches tap in one admitted request.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

defaultRequestId() String