NetworkData class
Constructors
-
NetworkData({required String url, required String method, String requestBody = '', String responseBody = '', int requestBodySize = 0, int responseBodySize = 0, int? status, Map<
String, dynamic> requestHeaders = const <String, dynamic>{}, Map<String, dynamic> responseHeaders = const <String, dynamic>{}, int? duration, String? requestContentType = '', String? responseContentType = '', DateTime? endTime, required DateTime startTime, int errorCode = 0, String errorDomain = ''}) -
const
Properties
- duration → int?
-
final
- endTime → DateTime?
-
final
- errorCode → int
-
final
- errorDomain → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
final
- requestBody → String
-
final
- requestBodySize → int
-
final
- requestContentType → String?
-
final
-
requestHeaders
→ Map<
String, dynamic> -
final
- responseBody → String
-
final
- responseBodySize → int
-
final
- responseContentType → String?
-
final
-
responseHeaders
→ Map<
String, dynamic> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
final
- status → int?
-
final
- url → String
-
final
Methods
-
copyWith(
{String? url, String? method, String? requestBody, String? responseBody, int? requestBodySize, int? responseBodySize, int? status, Map< String, dynamic> ? requestHeaders, Map<String, dynamic> ? responseHeaders, int? duration, String? requestContentType, String? responseContentType, DateTime? endTime, DateTime? startTime, int? errorCode, String? errorDomain}) → NetworkData -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited