Future<List<Entry>> readEntries() { var completer = new Completer<List<Entry>>(); _readEntries( (value) { completer.complete(value); }, (error) { completer.completeError(error); }); return completer.future; }