dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  await currentUpload?.cancel();
  for (final sessions in olmSessions.values) {
    for (final sess in sessions) {
      sess.dispose();
    }
  }
  _olmAccount?.free();
  _olmAccount = null;
}