handleError method

void handleError(
  1. dynamic error
)

Handle an error for this subscription

Implementation

void handleError(dynamic error) {
  if (!_active) return;

  _lastUsed = DateTime.now();
  _errorCount++;
}