InfospectNetworkResponse class

Represents an Network response data for the Infospect application.

Available extensions

Constructors

InfospectNetworkResponse({int? status, int size = 0, DateTime? responseTime, dynamic body = '', Map<String, String>? headers})
Creates an instance of the InfospectNetworkResponse class.
InfospectNetworkResponse.fromMap(Map map)
Creates an instance of the InfospectNetworkResponse class from a Map representation.
factory

Properties

body → dynamic
The body of the Network response.
final
bodyMap → Map<String, dynamic>

Available on InfospectNetworkResponse, provided by the NetworkResponseExtension extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
The headers of the Network response.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
The size of the response data in bytes.
final
status → int?
The Network status code of the response.
final
statusString → String

Available on InfospectNetworkResponse, provided by the NetworkResponseExtension extension

no setter
time → DateTime
The timestamp when the response was received.
final

Methods

copyWith({int? status, int? size, DateTime? time, dynamic body, Map<String, String>? headers}) → InfospectNetworkResponse
getStatusTextColor(BuildContext context) → Color?

Available on InfospectNetworkResponse, provided by the NetworkResponseExtension extension

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

Operators

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