Skip to content

Commit

Permalink
A wrong variable in assignment?
Browse files Browse the repository at this point in the history
I'am new to flutter, but what does this `String ` mean in line 192: 
` contentType: String ?? this.contentType,`?
This lead to an error after I called `merge()`.
  • Loading branch information
zav8 authored Sep 24, 2019
1 parent 8bab3b1 commit a135938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dio/lib/src/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Options extends _RequestConfig {
extra: extra ?? Map.from(this.extra ?? {}),
headers: headers ?? Map.from(this.headers ?? {}),
responseType: responseType ?? this.responseType,
contentType: String ?? this.contentType,
contentType: contentType ?? this.contentType,
validateStatus: validateStatus ?? this.validateStatus,
receiveDataWhenStatusError:
receiveDataWhenStatusError ?? this.receiveDataWhenStatusError,
Expand Down

0 comments on commit a135938

Please sign in to comment.