We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 064bbed commit 17bc4bfCopy full SHA for 17bc4bf
1 file changed
lib/src/base_request.dart
@@ -89,7 +89,7 @@ abstract class BaseRequest {
89
bool _finalized = false;
90
91
BaseRequest(String method, this.url)
92
- : this.method = [
+ : method = [
93
'HEAD',
94
'GET',
95
'POST',
@@ -98,7 +98,7 @@ abstract class BaseRequest {
98
'DELETE',
99
].contains(method)
100
? method
101
- : throw StateError("invalid HTTP method."),
+ : throw StateError('invalid HTTP method.'),
102
headers = LinkedHashMap(
103
equals: (key1, key2) => key1.toLowerCase() == key2.toLowerCase(),
104
hashCode: (key) => key.toLowerCase().hashCode);
0 commit comments