TrustPinLogEvent class

One log message emitted by the native TrustPin SDK, delivered through TrustPin.logs.

The native log sink is global: one stream carries the output of every TrustPin instance, distinguished by instanceId. What is logged — and at which verbosity — is still controlled per instance via TrustPin.setLogLevel; the stream only chooses where already-filtered messages go.

Constructors

TrustPinLogEvent.new({required TrustPinLogLevel level, required String instanceId, required String message})
Creates a log event. Exposed for testing; production events are constructed from the platform stream.
const
TrustPinLogEvent.fromMap(Map<Object?, Object?> map)
Decodes an event map received from the platform event channel.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
instanceId → String
Identifier of the TrustPin instance that produced the message. 'default' for TrustPin.shared.
final
level → TrustPinLogLevel
Severity of this message — always TrustPinLogLevel.error, TrustPinLogLevel.info, or TrustPinLogLevel.debug; never TrustPinLogLevel.none (that value only configures filtering).
final
message → String
The log message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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