defaultResponseContentLength function

int? defaultResponseContentLength(
  1. Response response
)

Implementation

int? defaultResponseContentLength(Response response) {
  if (response.data is String) {
    return (response.headers.toString().length) + response.data.length as int?;
  } else {
    return null;
  }
}