getHeaders method
Implementation
Map<String, String> getHeaders(){
if(kIsWeb) {
// HttpHeaders.cookieHeader;
Map<String, String> header = <String, String>{};
header.addAll(<String, String> {
'Content-Type': 'application/json; charset=UTF-8'
});
return header;
}else {
return <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
'User-Agent': header._userAgent ?? "",
'doceree-device-id': header._deviceId,
'is-ad-tracking-enabled': header._isAdTrackingEnable.toString(),
'app-name': header._appName ?? "",
'app-version': header._appVersion ?? "",
'lib-version': '5.0.5-4-gbbaaa60',
'app-bundle': 'com.doceree.mobileadssampleupdated'
};
}
}