discontinuedPackage fluttersdk_telescope has been discontinued and replaced by crumbs.

files method

Future<List<Map<String, Object>>> files()

The timeline files in the directory, earlier launches included, newest first, each as {name, bytes} with bytes the file's length after a flush.

Implementation

Future<List<Map<String, Object>>> files() async {
  await flush();

  return _serial(() async {
    final List<Map<String, Object>> listing = <Map<String, Object>>[];
    for (final _TimelineEntry entry in await _timeline()) {
      listing.add(<String, Object>{
        'name': entry.name,
        'bytes': await entry.file.length(),
      });
    }
    return listing;
  });
}