Closed
Description
Hi there,
May I ask a few questions,
[master branch] flutter_parse_sdk/example/lib/data/repositories/user/repository_user.dart
@override
Future<User> createUser(
String username, String password, String emailAddress) async {
api.createUser(username, password, emailAddress);
final User user = await api.createUser(username, password, emailAddress);
if (user != null) {
await db.createUser(username, password, emailAddress);
}
return user;
}
Q: Why do api.createUser(username, password, emailAddress);
twice?
[master] flutter_parse_sdk/example/lib/data/repositories/user/repository_user.dart
@override
Future<User> currentUser() => db.currentUser();
Q2: Why not return api.currentUser()
, since db.currentUser()
alway null?
Metadata
Metadata
Assignees
Labels
No labels