didInsertObject method Null safety

FutureOr<Response> didInsertObject(
  1. InstanceType object
)

Executed after an insert query is successful.

By default, returns Response.ok. The object is the newly inserted InstanceType. You may override this method to provide some other behavior.

Implementation

FutureOr<Response> didInsertObject(InstanceType object) {
  return Response.ok(object);
}