concatList static method

String concatList(
  1. List<String> paths
)

One line per segment for the FFmpeg concat demuxer.

Implementation

static String concatList(List<String> paths) => paths
    .map((p) => "file '${p.replaceAll("'", r"'\''")}'")
    .join('\n');