getAllOlmSessions method

  1. @override
Future<Map<String, Map>> getAllOlmSessions()
override

Implementation

@override
Future<Map<String, Map>> getAllOlmSessions() async {
  final backup = Map.fromEntries(
    await Future.wait(
      _olmSessionsBox.keys.map(
        (key) async => MapEntry(
          key,
          await _olmSessionsBox.get(key),
        ),
      ),
    ),
  );
  return backup.cast<String, Map>();
}