From a135938ab651d3a968ce6391541ff8c3f55d723f Mon Sep 17 00:00:00 2001 From: zav8 Date: Tue, 24 Sep 2019 16:21:19 +0800 Subject: [PATCH] A wrong variable in assignment? 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()`. --- dio/lib/src/options.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dio/lib/src/options.dart b/dio/lib/src/options.dart index b69d03fc8..5ab67bc7f 100644 --- a/dio/lib/src/options.dart +++ b/dio/lib/src/options.dart @@ -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,