pending method

  1. @override
List<DVCrashStoreEntry> pending()
override

Every record left by earlier runs, oldest first.

Implementation

@override
List<DVCrashStoreEntry> pending() {
  final List<String> ids = <String>[
    for (final String key in storage.keys)
      if (key.startsWith(_records)) key.substring(_records.length),
  ]..sort();
  return <DVCrashStoreEntry>[
    for (final String id in ids)
      DVCrashStoreEntry(
        id: id,
        report: dvReadCrashRecord(storage.read(_record(id)) ?? ''),
      ),
  ];
}