html method Null safety

StringResponse html(
  1. String html,
  2. {int statusCode = HttpStatus.ok,
  3. Map<String, dynamic>? headers,
  4. String mimeType = MimeTypes.html,
  5. String charset = kDefaultCharset,
  6. List<Cookie>? cookies}
)

Implementation

static StringResponse html(
  String html, {
  int statusCode = HttpStatus.ok,
  Map<String, dynamic>? headers,
  String mimeType = MimeTypes.html,
  String charset = kDefaultCharset,
  List<Cookie>? cookies,
}) {
  return StringResponse(
    body: html,
    statusCode: statusCode,
    headers: headers,
    mimeType: mimeType,
    charset: charset,
    cookies: cookies,
  );
}