text method

String text({
  1. TimeFormat timeFormat = TimeFormat.timeAndSeconds,
})

The method allows you to get full text of logs or history

Implementation

String text({TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
  final sb = StringBuffer();
  for (final data in this) {
    sb.write('${data.generateTextMessage(timeFormat: timeFormat)}\n');
  }
  return sb.toString();
}