Request constructor Null safety
Implementation
Request({
required this.url,
required this.query,
this.type = RequestType.none,
Map<String, String>? headers,
}) {
if (headers != null) {
this.headers.addAll(headers);
}
}
Request({
required this.url,
required this.query,
this.type = RequestType.none,
Map<String, String>? headers,
}) {
if (headers != null) {
this.headers.addAll(headers);
}
}