Flutter – Extract value of an element from object instance
Here is my code to get the current users phone number. Future<void> getCurrentUser() async { try { AuthUser user = await Amplify.Auth.getCurrentUser(); print(user.signInDetails); } on AuthException catch (e) { safePrint('Error retrieving current user: ${e.message}'); } } The print statement above…