clear method
Clears the current session data and frees memory.
Implementation
void clear() {
_currentFrame = null;
_rawTexture?.dispose();
_rawTexture = null;
_currentWindowCenter = null;
_currentWindowWidth = null;
_clearError();
notifyListeners();
}