NetworkData constructor

const NetworkData({
  1. required String url,
  2. required String method,
  3. String requestBody = '',
  4. String responseBody = '',
  5. int requestBodySize = 0,
  6. int responseBodySize = 0,
  7. int? status,
  8. Map<String, dynamic> requestHeaders = const <String, dynamic>{},
  9. Map<String, dynamic> responseHeaders = const <String, dynamic>{},
  10. int? duration,
  11. String? requestContentType = '',
  12. String? responseContentType = '',
  13. DateTime? endTime,
  14. required DateTime startTime,
  15. int errorCode = 0,
  16. 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 = ''});