AntiVirtualReport class

Outcome of one scan. Send it to your backend together with an attestation token (Play Integrity / App Attest) rather than trusting it on the client.

Constructors

AntiVirtualReport(Map<AntiVirtualSignal, SignalResult> results)
const
AntiVirtualReport.fromMap(Map<Object?, Object?> map, {Iterable<AntiVirtualSignal> requested = const <AntiVirtualSignal>[]})
Parses the native result. Every signal in requested that the native side left out is recorded as SignalResult.failed, so a missing answer can never read as a clean one.
factory

Properties

detected → Set<AntiVirtualSignal>
Signals that fired.
no setter
failed → Set<AntiVirtualSignal>
Signals whose check failed. Their state is unknown, not clean.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isClean → bool
Nothing was detected and every check produced an answer. A report with a failed check is not clean.
no setter
results → Map<AntiVirtualSignal, SignalResult>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

hasAny(Iterable<AntiVirtualSignal> signals) → bool
True when any of signals fired.
isDetected(AntiVirtualSignal signal) → bool
isFailed(AntiVirtualSignal signal) → bool
True when the check for signal ran but produced no answer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](AntiVirtualSignal signal) → SignalResult?