getTranscriptFormattedToSave static method

String getTranscriptFormattedToSave(
  1. List<TranscriptionModel> transcriptions
)

Implementation

static String getTranscriptFormattedToSave(
    List<TranscriptionModel> transcriptions) {
  StringBuffer contentBuffer = StringBuffer();
  for (var entry in transcriptions) {
    contentBuffer.writeln('${entry.name} ${entry.timestamp}');
    contentBuffer.writeln(entry.transcription);
    contentBuffer.writeln();
    contentBuffer.writeln();
  }
  return contentBuffer.toString();
}