IOSURLResponse class


IOSURLResponse({Uri? url, required int expectedContentLength, String? mimeType, String? suggestedFilename, String? textEncodingName, Map<String, String>? headers, int? statusCode})


expectedContentLength int
The expected length of the response’s content.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
All HTTP header fields of the response.
getter/setter pair
mimeType String?
The MIME type of the response.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The response’s HTTP status code.
getter/setter pair
suggestedFilename String?
A suggested filename for the response data.
getter/setter pair
textEncodingName String?
The name of the text encoding provided by the response’s originating source.
getter/setter pair
url Uri?
The URL for the response.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

fromMap(Map<String, dynamic>? map) IOSURLResponse?