Failure.network constructor

Failure.network([
  1. String? message
])

Build for network errors (no response).

Implementation

factory Failure.network([String? message]) => Failure(
  errorMessage: message ?? 'No internet connection.',
  category: FailureCategory.network,
  retryable: true,
);