onSendProgress property

ProgressCallback? onSendProgress
getter/setter pair

The type of a progress listening callback when sending or receiving data.

count is the length of the bytes have been sent/received.

total is the content length of the response/request body.

  1. When sending data, total is the request body length.
  2. When receiving data, total will be -1 if the size of the response body, typically with no content-length header.

Implementation

ProgressCallback? onSendProgress;