resetTracking function
void
resetTracking()
Resets the tracking state to the previous value.
Implementation
void resetTracking() {
try {
shouldTrack = trackStack.removeLast();
} catch (_) {
shouldTrack = true;
}
}