revalidationMethod property
/
Implementation
// static ValidationRequest<TT>? create<TT>(
// Request request, BuildContext context, RevalidationMethod<TT> method) {
// if (_getIfModifiedSince(request.headers) != null && TT == DateTime) {
// return ValidationRequest<DateTime>.fromRequest(
// request,
// _getIfModifiedSince(request.headers)!,
// method as RevalidationMethod<DateTime>) as ValidationRequest<TT>;
// } else if (request.headers?[HttpHeaders.ifMatchHeader] != null &&
// TT == String) {
// return ValidationRequest<String>.fromRequest(
// request,
// request.headers![HttpHeaders.ifMatchHeader]!.first,
// method as RevalidationMethod<String>) as ValidationRequest<TT>;
// } else if (request.headers?[HttpHeaders.ifNoneMatchHeader] != null &&
// TT == String) {
// return ValidationRequest<String>.fromRequest(
// request,
// request.headers![HttpHeaders.ifNoneMatchHeader]!.first,
// method as RevalidationMethod<String>) as ValidationRequest<TT>;
// } else if (request.headers?[HttpHeaders.ifRangeHeader] != null &&
// TT == String) {
// return ValidationRequest<String>.fromRequest(
// request,
// request.headers![HttpHeaders.ifRangeHeader]!.first,
// method as RevalidationMethod<String>) as ValidationRequest<TT>;
// } else if (request.headers?[HttpHeaders.ifUnmodifiedSinceHeader]
// != null &&
// TT == DateTime) {
// return ValidationRequest<DateTime>.fromRequest(
// request,
// HttpDate.parse(
// request.headers![HttpHeaders.ifUnmodifiedSinceHeader]!.first),
// method as RevalidationMethod<DateTime>) as ValidationRequest<TT>;
// }
// }
////
RevalidationMethod<T> revalidationMethod;