changes made dart GETTING_STARTED.md
This commit is contained in:
parent
af87c24cfd
commit
7721f29d0e
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ void main() async {
|
|||
Users users = Users(client);
|
||||
|
||||
try {
|
||||
final user = await users.create(ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien");
|
||||
final user = await users.create(userId: ID.unique(), email: 'email@example.com', phone: '+123456789', password: 'password', name: "Walter O'Brien");
|
||||
print(user.toMap());
|
||||
} on AppwriteException catch(e) {
|
||||
print(e.message);
|
||||
|
@ -31,7 +31,7 @@ The Appwrite Dart SDK raises `AppwriteException` object with `message`, `code` a
|
|||
Users users = Users(client);
|
||||
|
||||
try {
|
||||
final user = await users.create(ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien");
|
||||
final user = await users.create(userId: ID.unique(), email: 'email@example.com', phone: '+123456789', password: 'password', name: "Walter O'Brien");
|
||||
print(user.toMap());
|
||||
} on AppwriteException catch(e) {
|
||||
//show message to user or do other operation based on error as required
|
||||
|
|
Loading…
Reference in a new issue