Closed chengmenghuiAndroid closed 4 months ago
Hello @chengmenghuiAndroid ,
This should be done using kReleaseMode constant which values will be true in release mode as per the definition mentioned here.
kReleaseMode
if (!kReleaseMode) { dio.interceptors.add( LogInterceptor( requestBody: true, responseBody: true, responseHeader: false, ), ); }
you can now use the enable prop enabled: kDebugMode
Hello @chengmenghuiAndroid ,
This should be done using
kReleaseMode
constant which values will be true in release mode as per the definition mentioned here.