clearError method

void clearError()

Clears the current error message. This is typically called by the View after it has displayed the error to the user (e.g., in a SnackBar).

Implementation

void clearError() => _errorMessage = null;