getAllLogFiles method
Returns all available rotated logs, starting from the most current one.
Implementation
List<File> getAllLogFiles() =>
Iterable.generate(keepRotateCount, (idx) => idx)
.map((rotation) => _fileNameForRotation(rotation))
.map((fileName) => File(fileName))
.takeWhile((file) => file.existsSync())
.toList(growable: false);