scan method
Implementation
@override
Future<AntiVirtualReport> scan(ScanOptions options) async {
final raw = await methodChannel.invokeMapMethod<Object?, Object?>(
'scan',
options.toMap(),
);
if (raw == null) {
// An empty report would read as a clean device.
throw PlatformException(
code: 'no_result',
message: 'The native scan returned no result',
);
}
return AntiVirtualReport.fromMap(raw, requested: options.enabledSignals);
}