NetworkData constructor
const
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 = '',
Implementation
const NetworkData(
{required this.url,
required this.method,
this.requestBody = '',
this.responseBody = '',
this.requestBodySize = 0,
this.responseBodySize = 0,
this.status,
this.requestHeaders = const <String, dynamic>{},
this.responseHeaders = const <String, dynamic>{},
this.duration,
this.requestContentType = '',
this.responseContentType = '',
this.endTime,
required this.startTime,
this.errorCode = 0,
this.errorDomain = ''});