NetworkRequest.http constructor Null safety

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

Implementation

const factory NetworkRequest.http({
  required String url,
  @Default({}) Map<String, String> headers,
  String? method,
  String? bodyText,
  List<int>? bodyBytes,
  Map<String, Object>? bodyMap,
  @Default(false) bool streamedResponse,
}) = NetworkHttpRequest;