isNotFound property

bool get isNotFound

Returns true if the response status code is 404 (Not Found).

Indicates that the requested resource could not be found on the server.

Implementation

bool get isNotFound {
  return response?.statusCode == 404;
}