HttpProfileRequestData.buildSuccessfulRequest constructor Null safety

HttpProfileRequestData.buildSuccessfulRequest(
  1. {required Map<String, dynamic> headers,
  2. required Map<String, dynamic>? connectionInfo,
  3. required int contentLength,
  4. required List<String> cookies,
  5. required bool followRedirects,
  6. required int maxRedirects,
  7. required String method,
  8. required bool persistentConnection,
  9. required List<HttpProfileRequestEvent> events,
  10. HttpProfileProxyData? proxyDetails}
)

Implementation

HttpProfileRequestData.buildSuccessfulRequest({
  required Map<String, dynamic> headers,
  required Map<String, dynamic>? connectionInfo,
  required int contentLength,
  required List<String> cookies,
  required bool followRedirects,
  required int maxRedirects,
  required String method,
  required bool persistentConnection,
  required this.events,
  this.proxyDetails,
})  : _headers = headers,
      _connectionInfo = connectionInfo,
      _contentLength = contentLength,
      _cookies = cookies,
      _followRedirects = followRedirects,
      _maxRedirects = maxRedirects,
      _method = method,
      _persistentConnection = persistentConnection,
      error = null;