readLogs method

Future<List<WrappedMessage>> readLogs(
  1. File file
)

Reads logs from the given file.

Implementation

Future<List<WrappedMessage>> readLogs(File file) async => [
  for (final line in (await file.readAsString()).trim().split("\n"))
    WrappedMessage.fromBuffer(base64.decode(line)),
];