NetworkHttpRequest constructor Null safety

const NetworkHttpRequest(
  1. {required String url,
  2. Map<String, String> headers,
  3. String? method,
  4. String? bodyText,
  5. List<int>? bodyBytes,
  6. Map<String, Object>? bodyMap,
  7. bool streamedResponse}
)

Implementation

const factory NetworkHttpRequest(
    {required final String url,
    final Map<String, String> headers,
    final String? method,
    final String? bodyText,
    final List<int>? bodyBytes,
    final Map<String, Object>? bodyMap,
    final bool streamedResponse}) = _$NetworkHttpRequest;