SpoofDetectionEvent class

Event emitted when spoofing is detected.

Constructors

SpoofDetectionEvent({required Location location, Location? previousLocation, required Set<SpoofFactor> factors, required double confidence, bool wasBlocked = false, Map<String, dynamic>? details, DateTime? timestamp})
Creates a spoof detection event.

Properties

confidence double
Confidence score (0-1) that this is actually spoofed.
final
description String
Human-readable description of the detection.
no setter
details Map<String, dynamic>
Additional details about detection.
final
factors Set<SpoofFactor>
Detection factors that triggered this event.
final
hashCode int
The hash code for this object.
no setterinherited
location Location
The suspicious location.
final
previousLocation Location?
Previous location for comparison.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp of detection.
final
wasBlocked bool
Whether the location was blocked from being emitted.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() JsonMap
Converts to a JSON-serializable map.
toString() String
A string representation of this object.
inherited

Operators

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