TamperEvent class

Tamper event — created when OcrIntegrity.verify fails. Persist immediately and report to your backend.

Constructors

TamperEvent({required String type, required String reason, required String scanId, required String docType, required DateTime detectedAt, String? agentId})
const
TamperEvent.fromVerification(OcrVerificationResult result, OcrAuditRecord record)
factory

Properties

agentId → String?
final
detectedAt → DateTime
final
docType → String
final
hashCode → int
The hash code for this object.
no setterinherited
reason → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scanId → String
final
type → String
What was tampered: 'data' or 'image'.
final

Methods

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

Operators

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