Skip to content

Commit 6ae7923

Browse files
author
Franco Bugnano
committed
Changed the getOrCreate functions to be simply called get
1 parent a517f1b commit 6ae7923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/session.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Session with ChangeNotifier {
3737

3838
Session({required this.appId, this.signature});
3939

40-
User getOrCreateUser({
40+
User getUser({
4141
required String id,
4242
required String name,
4343
List<String>? email,
@@ -64,7 +64,7 @@ class Session with ChangeNotifier {
6464

6565
User getUserById(String id) => User.fromId(id, this);
6666

67-
Conversation getOrCreateConversation({
67+
Conversation getConversation({
6868
required String id,
6969
Map<String, String?>? custom,
7070
List<String>? welcomeMessages,

0 commit comments

Comments
 (0)