createUser method
Implementation
@override
Future<PublicUserInfo> createUser(String identifier, {Metadata? userMetadata}) async {
try {
final jsonString = await methodChannel
.invokeMethod<String>('createUser', {'identifier': identifier, 'userMetadata': userMetadata?.toJson()});
return PublicUserInfo.fromJson(jsonString);
} catch (e) {
throw PassageError.fromObject(object: e);
}
}