endSession method
Ends the active multi-scan session.
Implementation
SessionStats? endSession() {
if (_activeSession == null) return null;
_activeSession!.complete();
final stats = _activeSession!.getStats();
_safeNotifyListeners();
return stats;
}