contentLength property

int contentLength

The length of the request body. Is set to -1 when no body exists.

Implementation

int get contentLength => hasBody ? _body!.length : -1;