isSuccess method
Checks whether the request at the specified index succeeded.
Returns true if the request completed successfully, false if it failed.
Example:
if (results.isSuccess(0)) {
final result = results.getRequestByIndex<UserInfo>(0);
print('Request succeeded: $result');
} else {
print('Request failed');
}
Parameters:
index: The zero-based index of the request
See also:
- isSuccessByTag for tag-based success checking
- errors to get all error information
Implementation
bool isSuccess(int index) => !_errors.containsKey(index);