Response.badRequest constructor Null safety

Response.badRequest(
  1. {Map<String, dynamic>? headers,
  2. dynamic body}
)

Represents a 400 response.

Implementation

Response.badRequest({Map<String, dynamic>? headers, dynamic body})
    : this(HttpStatus.badRequest, headers, body);