ScannerAnalytics class

Tracks enterprise session metrics, success rates, scan latency averages, and failure analytics across scanning operations.

Constructors

ScannerAnalytics()

Properties

averageScanDurationMs double
Average scan processing duration in milliseconds.
no setter
duplicateScans int
Total number of filtered duplicate scans.
no setter
failedScans int
Total number of failed or invalid scan attempts.
no setter
failureRate double
Percentage failure rate (0.0 to 100.0%).
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scansByFormat Map<String, int>
Map of scan counts grouped by barcode or document format string.
no setter
scansByMode Map<String, int>
Map of scan counts grouped by ScanMode name.
no setter
successfulScans int
Total number of valid successful scans.
no setter
successRate double
Percentage success rate (0.0 to 100.0%).
no setter
totalScans int
Total number of scan attempts recorded in this session.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordScan(ScanResult result) → void
Records a scan operation event.
reset() → void
Resets all analytics session metrics back to zero.
toJson() Map<String, dynamic>
Converts analytics summary metrics to a readable string or json.
toString() String
A string representation of this object.
inherited

Operators

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