generateTextMessage method

  1. @override
String generateTextMessage({
  1. TimeFormat timeFormat = TimeFormat.timeAndSeconds,
})

Internal method that generates a complete message about the event

See examples: TalkerLog -> TalkerLog.generateTextMessage TalkerException -> TalkerException.generateTextMessage TalkerError -> TalkerError.generateTextMessage

Implementation

@override
String generateTextMessage({
  TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
  final sb = StringBuffer();
  sb.write(displayTitleWithTime(timeFormat: timeFormat));
  sb.write('\n$message');
  sb.write('\n${'ERROR: \n$providerError'}');
  sb.write('\n${'STACK TRACE: \n$providerStackTrace'}');
  return sb.toString();
}