validationEvents property
override
A broadcast stream of raw pin-validation verdict maps produced by the native SDK's global validation listener.
Each event map carries instanceId and domain; failure events add
code (stable error code), message, and certificatePem (the
presented leaf certificate). A null code marks a success event.
The listener is global on the native side: one stream reports verdicts
from every TrustPin instance, distinguished by instanceId. The native
listener is installed when the first Dart subscription starts and
removed when the last one cancels.
Implementation
@override
Stream<Map<Object?, Object?>> get validationEvents =>
_validationEvents ??= eventChannel
.receiveBroadcastStream()
.map((event) => (event as Map).cast<Object?, Object?>());