stringify method
Converts a message to its string representation.
If the message is a function, it will be invoked and its result stringified. Otherwise, it will be formatted into a readable string.
Implementation
String stringify(dynamic message) {
if(message == null) {
return 'No log message';
} else if(message is Function) {
return message().toString();
} else {
return _buildFormattedText(message, 0);
}
}