Response.ok constructor Null safety

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

Represents a 200 response.

Implementation

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