contentLength property

  1. @override
int get contentLength
override

Gets and sets the content length of the request.

If the size of the request is not known in advance set content length to -1, which is also the default.

Implementation

@override
int get contentLength => (super.noSuchMethod(
      Invocation.getter(#contentLength),
      returnValue: 0,
    ) as int);
  1. @override
set contentLength (int? _contentLength)
override

Gets and sets the content length of the request.

If the size of the request is not known in advance set content length to -1, which is also the default.

Implementation

@override
set contentLength(int? _contentLength) => super.noSuchMethod(
      Invocation.setter(
        #contentLength,
        _contentLength,
      ),
      returnValueForMissingStub: null,
    );