httpLogText property
String?
get
httpLogText
Error/exception message with special handling for HTTP and Flutter errors.
Implementation
String? get httpLogText {
var txt = exception?.toString();
if ((txt?.isNotEmpty ?? false) && txt!.contains('Source stack:')) {
txt = 'Data: ${txt.split('Source stack:').first.replaceAll('\n', ' ')}';
}
final text = isHttpLog ? textMessage : txt;
return text.truncate();
}