didNotFindObject method

FutureOr<Response> didNotFindObject()

Executed after a fetch by ID query that did not find a matching instance.

By default, returns Response.notFound. You may override this method to provide some other behavior.

Implementation

FutureOr<Response> didNotFindObject() {
  return Response.notFound();
}