onError method

void onError(
  1. TurboFirestoreException error
)

Called when a stream error occurs.

Override this method to handle specific error types. Parameters:

  • error - The Firestore exception that occurred

Implementation

void onError(TurboFirestoreException error) {
  // Default implementation logs the error
  _log.warning('Stream error occurred (onError not overridden): $error');
}