create method
Creates a new user with the username
and password
provided.
Returns the public key of the user.
Implementation
Future<String?> create(String username, String password) {
final completer = Completer<String?>();
_user.create(username, password, allowInterop(
(Object data) {
completer.complete(getProperty(data, 'pub'));
},
));
return completer.future;
}