errors property
Returns an unmodifiable map of all errors from failed requests.
The map keys are request indices, and values are the error objects.
This property is only populated when using eagerError: false.
Example:
final results = await RxNet.zipRequest(requests, eagerError: false);
if (results.errors.isNotEmpty) {
print('${results.errors.length} requests failed:');
results.errors.forEach((index, error) {
print(' Request $index: $error');
});
}
Returns: An unmodifiable map of index to error object.
See also:
- successfulResults to get only successful results
- isSuccess to check if a specific request succeeded
Implementation
Map<int, dynamic> get errors => Map.unmodifiable(_errors);