defaultRequestContentLength function

int? defaultRequestContentLength(
  1. RequestOptions options
)

Implementation

int? defaultRequestContentLength(RequestOptions options) {
  try {
    return options.headers.toString().length + options.data.toString().length;
  } catch (_) {
    return null;
  }
}