requestContentLength property
int?
get
requestContentLength
Implementation
int? get requestContentLength {
final options = response?.requestOptions;
if (options == null) {
return null;
}
try {
if (options.data is String || options.data is Map) {
return options.headers.toString().length +
(options.data?.toString().length ?? 0);
}
} catch (_) {
return null;
}
return null;
}