ResponseWithLastModified constructor
ResponseWithLastModified(})
Implementation
ResponseWithLastModified(dynamic body,
{Map<String, dynamic>? additionalHeaders,
required Request request,
required DateTime? lastModified,
int? statusCode,
ContentType? contentType})
: super._(
body is Body
? body
: body != null
? Body(body)
: null,
validationData: lastModified,
request: request,
contentType: contentType,
statusCode: statusCode ?? 200,
additionalHeaders: (additionalHeaders ?? <String, dynamic>{})
..addAll({
if (lastModified != null)
HttpHeaders.lastModifiedHeader: HttpDate.format(lastModified)
}));