getCurrentUser method
Implementation
@override
Future<PassageUser?> getCurrentUser() async {
try {
final resultPromise = passage.getCurrentUser().userInfo();
final jsObject = await js_util.promiseToFuture(resultPromise);
return PassageUser.fromJson(jsObject);
} catch (e) {
var error = PassageError.fromObject(object: e);
flutter.debugPrint(error.toString());
return null;
}
}