docs: Add an example

This commit is contained in:
2022-08-09 15:48:26 +02:00
parent cb43bbb112
commit 6e7b8e3905
4 changed files with 154 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ export 'src/omemo/encrypted_key.dart';
export 'src/omemo/encryption_result.dart';
export 'src/omemo/events.dart';
export 'src/omemo/fingerprint.dart';
export 'src/omemo/ratchet_map_key.dart';
export 'src/omemo/sessionmanager.dart';
export 'src/trust/base.dart';
export 'src/trust/btbv.dart';

View File

@@ -1,6 +1,5 @@
import 'package:meta/meta.dart';
@internal
@immutable
class RatchetMapKey {

View File

@@ -78,6 +78,7 @@ class OmemoSessionManager {
/// The trust manager
final TrustManager _trustManager;
TrustManager get trustManager => _trustManager;
/// A stream that receives events regarding the session
Stream<OmemoEvent> get eventStream => _eventStreamController.stream;