logEvents property

  1. @override
Stream<Map<Object?, Object?>> get logEvents
override

A broadcast stream of raw SDK log-message maps produced by the native SDK's global log sink.

Each event map carries level ('error' / 'info' / 'debug'), instanceId, and message. The sink is global on the native side: one stream carries the output of every TrustPin instance. The native sink is installed when the first Dart subscription starts and removed when the last one cancels.

Implementation

@override
Stream<Map<Object?, Object?>> get logEvents => _logEvents ??= logEventChannel
    .receiveBroadcastStream()
    .map((event) => (event as Map).cast<Object?, Object?>());