getAllText method
Implementation
String getAllText() {
String msg = "${title}";
msg += "\n[DATE TIME START]\t${dateTimeStart.toString()}";
// }
// if (dateTimeNow != null)
msg += "\n[DATE TIME NOW]\t${dateTimeNow.toString()}";
msg += "\nMessage";
if (data is Map || data is List) {
msg += "\n${JsonEncoder.withIndent(" " * 2).convert(data)}";
} else {
msg += "\n${data.toString()}";
}
// if (stackTrace != null) {
msg += "\n${name.toUpperCase()}";
List<String> error_stacks = stackTrace.toString().trim().split("\n");
for (var i = 0; i < error_stacks.length; i++) {
String error = error_stacks[i];
msg += "\n[${name}]\t${error}";
}
// }
return msg;
}