location method

dynamic location(
  1. Uri uri
)

Implementation

location(Uri uri) async {
  request.response.headers.set('X-Inertia-Location', uri.toString());
  request.response.statusCode = 409;

  return await request.response.close();
}