TestResponseBody class Null safety

Instances of these type represent the body of a TestResponse.

Inheritance

Constructors

TestResponseBody(HttpClientResponse response)
Creates a new instance of this type. [...]

Properties

bytes Stream<List<int>>
The stream of bytes to decode. [...]
read-only, inherited
contentType ContentType
Determines how bytes get decoded. [...]
read-only, override
decodedType Type
The type of data bytes was decoded into. [...]
read-only, inherited
hasBeenDecoded bool
Whether or not bytes have been decoded yet. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Whether or not bytes is empty. [...]
read-only, override
originalBytes List<int>?
The raw bytes of this request body. [...]
read-only, inherited
retainOriginalBytes bool
Whether or not bytes are available as a list after decoding has occurred. [...]
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

as<T>() → T
Returns previously decoded object as T. [...]
inherited
decode<T>() Future<T>
Decodes this object's bytes as T. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited