Response constructor

Response(
  1. Object? body, {
  2. int? status,
  3. String? statusText,
  4. Headers? headers,
})

Implementation

Response(
  Object? body, {
  int? status,
  String? statusText,
  Headers? headers,
}) : _delegate = interop.Response(
        convertBody(body),
        interop.ResponseInit(
          status: status ?? 200,
          statusText: statusText ?? '',
          headers: headers?.delegate ?? jsUndefined,
        ),
      );